messages.BotPreparedInlineMessage

class pyrogram.raw.types.messages.BotPreparedInlineMessage

Represents a prepared inline message saved by a bot, to be sent to the user via a web app »

Constructor of BotPreparedInlineMessage.

Details:
  • Layer: 223

  • ID: 8ECF0511

Parameters:
  • id (str) – The ID of the saved message, to be passed to the id field of the web_app_send_prepared_message event »

  • expire_date (int 32-bit) – Expiration date of the message

Functions:

This object can be returned by 1 function.

messages.SavePreparedInlineMessage

Save a prepared inline message, to be shared by the user of the mini app using a web_app_send_prepared_message event

TL Schema

messages.botPreparedInlineMessage#8ecf0511
id:string
expire_date:int

= messages.BotPreparedInlineMessage

Parameter Tree

BotPreparedInlineMessage
├── idstring
└── expire_dateint

Example

BotPreparedInlineMessage(
    id="text",
    expire_date=0,
)