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

Retrieve the current menu button configuration for a Telegram chat, optionally specifying a private chat ID to get a user-specific menu button.

Inputs

  • Chat ID — Optional unique identifier for a target private chat to retrieve its menu button. If not provided, retrieves the default menu button.

Output shape

a single JSON object containing the menu button configuration of the specified chat or default bot menu button if no chat_id is specified.

The response includes a 'result' field detailing the menu button. If an optional 'chat_id' is specified in Additional Fields, it retrieves the menu button for that private chat; otherwise, it retrieves the default menu button.

Examples

Example 1: Retrieve the default menu button for the bot

Leave Additional Fields empty to get the default bot menu button.

Example 2: Retrieve menu button for a specific private chat

Specify the target chat's ID or username in Additional Fields under 'Chat ID' to get the chat-specific menu button.

Links

Discussion