bots.setBotMenuButton
Sets the menu button action » for a given user or for all users
Sets the [menu button action »](https://core.telegram.org/api/bots/menu.md) for a given user or for all users
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
user_id | InputUser | Ja | Benutzer-ID |
button | BotMenuButton | Ja | Bot menu button action |
Antworten
Bool
MTProto RPC
- 400 · BUTTON_INVALID – Die angegebene Schaltfläche ist ungültig.
- 400 · BUTTON_TEXT_INVALID – Der angegebene Schaltflächentext ist ungültig.
- 400 · BUTTON_URL_INVALID – Schaltfläche URL ungültig.
- 400 · USER_BOT_REQUIRED — Diese Methode kann nur von einem Bot aufgerufen werden.