messages.GetPreparedInlineMessage

class pyrogram.raw.functions.messages.GetPreparedInlineMessage

Obtain a prepared inline message generated by a mini app: invoked when handling web_app_send_prepared_message events

Details:
  • Layer: 223

  • ID: 857EBDB8

Parameters:
  • bot (InputUser) – The bot that owns the mini app that emitted the web_app_send_prepared_message event

  • id (str) – The id from the web_app_send_prepared_message event

Returns:

messages.PreparedInlineMessage

TL Schema

messages.getPreparedInlineMessage#857ebdb8
bot:InputUser
id:string

= messages.PreparedInlineMessage

Parameter Tree

GetPreparedInlineMessage
├── botInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ └── InputUserFromMessage
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── user_idlong
└── idstring

Example

await app.invoke(
    GetPreparedInlineMessage(
        bot=await app.resolve_user(chat_id),
        id="text",
    )
)