KG
Size: a a a
KG
KG
Ð
AC
SS
S
AC
const sendMessage = async (message, user) => {
const url = `https://slack.com/api/chat.postMessage?token=${token}&channel=${user}&text=${encodeURIComponent(message)}&as_user=true`; // это ссылка для отправки сообщения из Slack api
const q = axios.post(url) // сообщение отправляется, но потом я хочу получить ответ юзера и его вернуть в промис
.then(function (response) {
console.log('res', response.data) // но здесь ничего не выводится
return response.data;
})
.catch(err => {
console.log(err)
})
}
А
MK
А
AC
PS
倫岡
SS
SS
PS
AC
AC
SM
М