Skip to content
Back to top
View this page

# PreparedInlineMessage

class telegram.PreparedInlineMessage(id, expiration_date, *, api_kwargs=None)

  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

  `telegram.Bot.save_prepared_inline_message()`

  Added in version 21.8.

  Parameters:

    - id (`str`) – Unique identifier of the prepared message

    - 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 unless `telegram.ext.Defaults.tzinfo` is used.

  id

    Unique identifier of the prepared message

    Type:

      `str`

  expiration_date

    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)

    See `telegram.TelegramObject.de_json()`.