setChatMenu

Use this message to set normal keypad menus to "Chat Menu". This message will overwrite the existing Chat Menus. If the bot wants to update a specific item in the Chat Menus, it must send the entire menus again to the target chat. On success, setChatMenu_ack will be returned.

FieldTypeRequiredDescription
methodStringYes"setChatMenu"
menusMenuYesNew or updated Menus
chat_idStringYesUnique identifier for the target chat or User_id
to_user_idStringOptionalif reply or send message to target user within a group chat or channel, unique identifier of the target user.
Body Params
string
required
Defaults to setChatMenu
string
required
Defaults to 14568521459875552
menus
array of objects
required
menus*
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
LoadingLoading…
Response
Choose an example:
application/json
text/plain