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
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
user_id | InputUser | はい | ユーザーID |
button | BotMenuButton | はい | Bot menu button action |
レスポンス
Bool
MTProto RPC
- 400 · BUTTON_INVALID — The specified button is invalid.
- 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.