How can create menu for telegram bot in bot father?
17,204
You must add the return ajax call a string like this:
'{ "keyboard": [["uno :+1:"],["uno \ud83d\udc4d", "due"],["uno", "due","tre"],["uno", "due","tre","quattro"]]}';
The result is:
Author by
behzad razzaqi
Updated on June 18, 2022Comments
-
behzad razzaqi almost 2 years
I'm new in telegram bot and see this bot:
that but when type/start
show menu to me and with out type slash to command just fire the menu button,how can i create menu in telegram like that bot? -
bossajie about 4 yearsHow we can return it?
-
Alex over 2 yearsbot.telegram.sendMessage(ctx.chat.id, 'Main Menu', { reply_markup: { inline_keyboard: [code from sample below - sihould be an array of arrays] } })