getChatMenuButton¶
Returns: ResultMenuButtonUnion
- class litegram.methods.get_chat_menu_button.GetChatMenuButton(*, chat_id: int | None = None, **extra_data: Any)[source]¶
Use this method to get the current value of the bot’s menu button in a private chat, or the default menu button. Returns
litegram.types.menu_button.MenuButtonon success.Source: https://core.telegram.org/bots/api#getchatmenubutton
Usage¶
As bot method¶
result: ResultMenuButtonUnion = await bot.get_chat_menu_button(...)
Method as object¶
Imports:
from litegram.methods.get_chat_menu_button import GetChatMenuButtonalias:
from litegram.methods import GetChatMenuButton
With specific bot¶
result: ResultMenuButtonUnion = await bot(GetChatMenuButton(...))