PreparedInlineMessage

class aiogram.types.prepared_inline_message.PreparedInlineMessage(*, id: str, expiration_date: datetime | timedelta | int, **extra_data: Any)[source]

Describes an inline message to be sent by a user of a Mini App.

Source: https://core.telegram.org/bots/api#preparedinlinemessage

id: str

Unique identifier of the prepared message

model_computed_fields: ClassVar[Dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

expiration_date: datetime.datetime | datetime.timedelta | int

Expiration date of the prepared message, in Unix time. Expired prepared messages can no longer be used