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 | أيوه | معرف المستخدم |
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.