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.

Added in version 21.8.

Parameters:
id[source]

Unique identifier of the prepared message

Type:

str

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:

datetime.datetime

classmethod de_json(data, bot=None)[source]

See telegram.TelegramObject.de_json().