Closed Henxed closed 2 years ago
I think I was blind. I'm sorry! If someone needs a solution. Here we will receive the response of our message
bot.sendMessage(msg.chat.id, 'Hello, world!').then(answer => {
console.log(answer)
})
{
message_id: 2343,
from: {
id: 182347931,
is_bot: true,
first_name: 'Test Bot',
username: 'TestBot'
},
chat: {
id: 17523442,
first_name: 'Man',
username: 'man',
type: 'private'
},
date: 1636892539,
text: 'Hello, world!'
}
Hello. Interested in the issue of the SendMessage function. Why does it not return the data of the sent message?
In response, I get a Promise
Sorry for my English. And if there is a way to receive data after sending, can you tell me, please?