Sets the menu button action » for a given user or for all users
Method schema is available as of layer 140. Switch »
Name | Type | Description |
---|---|---|
user_id | InputUser | User ID |
button | BotMenuButton | Bot menu button action |
Code | Type | Description |
---|---|---|
400 | BUTTON_TEXT_INVALID | The specified button text is invalid. |
400 | BUTTON_URL_INVALID | Button URL invalid. |
400 | USER_BOT_REQUIRED | This method can only be called by a bot. |
Bots can choose the behavior of the menu button shown next to the text input field.