Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Chat → Get Chat Menu Button

AI-generated

Summary

Retrieves the current menu button configuration for a specific Telegram chat.

Inputs

  • chat_id (required) — Unique identifier for the target chat or username (@channelusername).
  • menuButtonAdditionalFields — Optional collection of additional fields. Currently includes 'chat_id' for private chats.

Output shape

A single record containing the current MenuButton object for the chat, or null if the default menu is active.

Returns the current button configuration. If the bot uses the default menu, the result may be null or an empty object depending on the API response.

Examples

Example 1: Check the custom menu button for a specific channel.

Set Resource to 'Chat', Operation to 'Get Chat Menu Button', and provide the channel's username.

Example 2: Verify the menu button state in a private chat.

Set Resource to 'Chat', Operation to 'Get Chat Menu Button', and provide the private chat ID.

Links

Discussion