setChatMenuButton

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

Arguments
Name Type Description Required
chat_id int | null | array Unique identifier for the target private chat. If not specified, default bot's menu button will be changed no
menu_button menuButton | null | stdClass A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault no
token string | null You can use this method on another bot with specify this parameter no
forgot bool | null You can set to not receive request result, dont set it or pass null for turn it off no
answer bool | null You can set to answer to webhook, dont set it or pass null for turn it off no

Output : bool | BPT\types\responseError

Static or normal : Static

Examples :

request::setChatMenuButton(chat_id: int | null, menu_button: MenuButton | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);
request::setChatMenuButton(['chat_id' => int | null, 'menu_button' => MenuButton | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);
request::setChatMenuButton();