getChatMenuButton

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.

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 returned 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 : BPT\types\menuButton | BPT\types\responseError | bool

Static or normal : Static

Examples :

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