PreparedInlineMessage¶
- class telegram.PreparedInlineMessage(id, expiration_date, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
Describes an inline message to be sent by a user of a Mini App.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
id
is equal.Returned In
Added in version 21.8.
- Parameters:
expiration_date (
datetime.datetime
) – Expiration date of the prepared message. Expired prepared messages can no longer be used. The default timezone of the bot is used for localization, which is UTC unlesstelegram.ext.Defaults.tzinfo
is used.
- expiration_date[source]¶
Expiration date of the prepared message. Expired prepared messages can no longer be used. The default timezone of the bot is used for localization, which is UTC unless
telegram.ext.Defaults.tzinfo
is used.- Type: