bots.GetBotMenuButton
- class pyrogram.raw.functions.bots.GetBotMenuButton
Gets the menu button action for a given user or for all users, previously set using bots.setBotMenuButton; users can see this information in the botInfo constructor.
- Details:
Layer:
223ID:
9C60EB28
- Parameters:
user_id (
InputUser) – User ID or empty for the default menu button.- Returns:
TL Schema
bots.getBotMenuButton#9c60eb28
user_id:InputUser
= BotMenuButton
Parameter Tree
GetBotMenuButton
└── user_id →
InputUser├──
InputUserEmpty├──
InputUserSelf├──
InputUser│ ├── user_id →
long│ └── access_hash →
long├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ ├──
InputPeerUser│ ├──
InputPeerChannel│ ├──
InputPeerUserFromMessage├── msg_id →
int└── user_id →
longExample
await app.invoke(
GetBotMenuButton(
user_id=await app.resolve_user(chat_id),
)
)