set_chat_menu_button
Set a custom menu button for a user's private chat or update the default for all chats using a JSON object.
Instructions
Set the menu button for a private chat or all chats.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"menu_button": "<menu_button>"
},
"name": "set_chat_menu_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | User ID for private chat. Optional — if omitted, changes default menu button | |
| menu_button | Yes | JSON object describing the menu button |