help me understand what the problem is. Why are the buttons (menuOptions) not displayed?
if (text === '/start') {
ust[chatId] = 0;
bot.sendMessage(chatId, `${msg.from.first_name}, <b>Добро пожаловать</b> ✌️\n\nДоступные возможности:`, {
parse_mode: "HTML",
menuOptions
})
}
Code menuOptions:
module.exports = {
menuOptions: {
reply_markup: JSON.stringify({
inline_keyboard: [
[{text: 'Списки', callback_data: '/list'}],
[{text: 'Частые вопросы', callback_data: '/quests'}, {text: 'Распространенные проблемы', callback_data: '/problems'}]
]
})
}
node-telegram-bot-api on Node JS
I tried many ways, remade the menuOptions structure, as soon as I did not insert it.