Telegram Bot API

Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success.

post/setChatMenuButton

Request

  • Base URL: https://api.telegram.org/bot<bot_token>
  • URL: https://api.telegram.org/bot<bot_token>/setChatMenuButton
  • Auth: none declared

Request body

chat_idinteger

Unique identifier for the target private chat. If not specified, the bot's default menu button will be changed.

Response

Telegram API response

oktrue required
resulttrue required

Changes

No recorded changes to this operation across all 3 revisions of this API.