getChatMenuButton
Returns MenuButton ↗
Use this method to get the current value of the bot’s menu button in a private chat, or the default menu button.
Optional: 1 parameters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("get_chat_menu_button")Parameters
chat_id number
Unique identifier for the target private chat. If not specified, default bot’s menu button will be returned.
Related methods
getAvailableGifts · getBusinessAccountGifts · getBusinessAccountStarBalance · getBusinessConnection · getChat · getChatAdministrators · getChatGifts · getChatMember · getChatMemberCount · getCustomEmojiStickers · getFile · getForumTopicIconStickers · getGameHighScores · getMe · getMyCommands · getMyDefaultAdministratorRights · getMyDescription · getMyName · getMyShortDescription · getMyStarBalance · getStarTransactions · getStickerSet · getUpdates · getUserChatBoosts · getUserGifts · getUserProfileAudios · getUserProfilePhotos · getWebhookInfo