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?
Asked
Active
Viewed 2.2k times
6

Matteo Enna
- 1,285
- 1
- 15
- 36

behzad razzaqi
- 127
- 1
- 5
- 14
-
1That's not something you can do in botfather, you need to do that in your bot's source code. And for us to help you with that, you will need to provide us with an example of your code. – Hoi_A Jan 31 '17 at 16:22
1 Answers
3
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:

Matteo Enna
- 1,285
- 1
- 15
- 36
-
1
-
bot.telegram.sendMessage(ctx.chat.id, 'Main Menu', { reply_markup: { inline_keyboard: [code from sample below - sihould be an array of arrays] } }) – Alex Nov 16 '21 at 09:23