method ApiMethods.setChatMenuButton
ApiMethods.setChatMenuButton(args: { chat_id?: number; menu_button?: MenuButton; }): true

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

Parameters

args: { chat_id?: number; menu_button?: MenuButton; }

Return Type

true

Usage

import { type ApiMethods } from "types";