Skip to content

How to add button (Menu) in user input field? #1747

Answered by MKRhere
code-by asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@sunnyplayzap
Comment options

@DoctorLeiws
Comment options

@sunnyplayzap
Comment options

@MKRhere
Comment options

@7heMech
Comment options

Answer selected by code-by
Comment options

You must be logged in to vote
1 reply
@sunnyplayzap
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants