setChatMenuButton
Change a private chat's menu button or the bot's default menu button to open commands, launch a Web App, or reset to default. Returns true on success.
Instructions
Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True 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": "setChatMenuButton"
}
}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 changed. | |
| menu_button | No | An object for the bot's new menu button. Defaults to MenuButtonDefault. |