# setChatMenuButton

Source: https://core.telegram.org/bots/api#setchatmenubutton

[Documentation index](../llms.txt)

Use this method to change the bot's menu button in a private chat, or the default menu button. Returns *True* on success.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| chat\_id | Integer | Optional | Unique identifier for the target private chat. If not specified, the bot's default menu button will be changed. |
| menu\_button | [MenuButton](menubutton.md) | Optional | A JSON-serialized object for the bot's new menu button. Defaults to [MenuButtonDefault](menubuttondefault.md). |
