messages.GetAttachMenuBot

class pyrogram.raw.functions.messages.GetAttachMenuBot

Returns attachment menu entry for a bot mini app that can be launched from the attachment menu »

Details:
  • Layer: 223

  • ID: 77216192

Parameters:

bot (InputUser) – Bot ID

Returns:

AttachMenuBotsBot

TL Schema

messages.getAttachMenuBot#77216192
bot:InputUser

= AttachMenuBotsBot

Parameter Tree

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

Example

await app.invoke(
    GetAttachMenuBot(
        bot=await app.resolve_user(chat_id),
    )
)