You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i wonder is it true that telebot just accept one markup on one event only?
this is work for first markup but dont with other markup on else statement....
i wonder is it true that telebot just accept one markup on one event only?
this is work for first markup but dont with other markup on else statement....
for example
bot.on('text', msg =>{
if (msg.text=="yes")
{ let markup = bot.keyboard([
['test yoyow']
], { resize: true})
return bot.sendMessage(
msg.from.id, 'yoyow' ,{ask : 'day', markup, parse: 'html'}
}
else
{
let markup = bot.keyboard([
['test yayai']
], { resize: true})
return bot.sendMessage(
msg.from.id, 'yayai' ,{ask : 'day', markup, parse: 'html'}
}
}
})
The text was updated successfully, but these errors were encountered: