getChatMenuButton
Retrieve the current menu button for a private chat or the bot's default, so you can inspect the configured Telegram menu before changing or displaying it.
Instructions
Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns MenuButton on success.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getChatMenuButton"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | Unique identifier for the target private chat. If not specified, the bot's default menu button will be returned. |