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: 223

  • ID: 9C60EB28

Parameters:

user_id (InputUser) – User ID or empty for the default menu button.

Returns:

BotMenuButton

TL Schema

bots.getBotMenuButton#9c60eb28
user_id:InputUser

= BotMenuButton

Parameter Tree

GetBotMenuButton
└── user_idInputUser
├── InputUserEmpty
├── InputUserSelf
├── InputUser
│ ├── user_idlong
│ └── access_hashlong
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ ├── InputPeerUser
│ ├── InputPeerChannel
├── msg_idint
└── user_idlong

Example

await app.invoke(
    GetBotMenuButton(
        user_id=await app.resolve_user(chat_id),
    )
)