Answer the question
In order to leave comments, you need to log in
How to get inline_keyboard response in Telegram?
Please tell me how can I get a response from a user who has made a choice in the inline keyboard in the Telegram bot,
the code is as follows:
bot.on('message', function(msg) {
var id = msg.chat.id;
bot.sendMessage(id, 'Сделайте свой выбор: ', {
reply_markup: JSON.stringify({
inline_keyboard: [
[{
text: '001',
callback_data: '001'
}],
[{
text: '002',
callback_data: '002'
}],
[{
text: '003',
callback_data: '003'
}],
[{
text: '004',
callback_data: '004'
}]
]
})
});
// я так понимаю что тут должна быть команда которая примет ответ. Какая?
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question