Answer the question
In order to leave comments, you need to log in
Bot resending message?
Hello, there is such a callback
bot.on('callback_query', function (msg) {
const chatId = msg.from.id;
const method = msg.data;
if (method === 'test') {
const opt = {
parse_mode: 'HTML',
disable_web_page_preview: false,
reply_markup: JSON.stringify({
resize_keyboard: true,
one_time_keyboard: true,
keyboard: [
[{text: `1`}, {text: `2`}],
[{text: `3`}, {text: `4`}]
]
})
}
bot.sendMessage(chatId, `Выберите тип помещения`, opt);
}
if (method === 'stop') {
console.log('stop')
}
});
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