peyk.platforms.telegram.methods.get_chat_menu_button¶
- async peyk.platforms.telegram.methods.get_chat_menu_button(self, *, chat_id: int | str | None = None) → MenuButtonCommands | MenuButtonWebApp | MenuButtonDefault¶
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.
- Parameters:
chat_id – Unique identifier for the target private chat. If not specified, the bot’s default menu button will be returned.