-
I'd like to add commands Menu in telegram like here |
Beta Was this translation helpful? Give feedback.
Answered by
MKRhere
Nov 25, 2022
Replies: 2 comments 6 replies
-
This only works for private chats: // from a handler
ctx.setChatMenuButton(menuButton);
// outside a handler
bot.telegram.setChatMenuButton(chatId, menuButton); See the docs: https://core.telegram.org/bots/api#setchatmenubutton |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
code-by
-
The code dont fail buy I dont see the button:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This only works for private chats:
See the docs: https://core.telegram.org/bots/api#setchatmenubutton