PreparedInlineMessage¶
- class telegram.PreparedInlineMessage(id, expiration_date, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectDescribes 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
idis equal.Returned In
Added in version 21.8.
- Parameters:
id (
str) – Unique identifier of the prepared messageexpiration_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.tzinfois 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.tzinfois used.- Type:
datetime.datetime