Skip to content
Back to top
View this page

# SuggestedPostApproved

class telegram.SuggestedPostApproved(send_date, suggested_post_message=None, price=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Describes a service message about the approval of a suggested post.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if all of their attributes are equal.

  Available In

  `telegram.Message.suggested_post_approved`

  Added in version 22.4.

  Parameters:

    - suggested_post_message (`telegram.Message`, optional) – Message containing the suggested post. Note that the `Message` object in this field will not contain the `reply_to_message` field even if it itself is a reply.

    - price (`SuggestedPostPrice`, optional) – Amount paid for the post.

    - send_date (`datetime.datetime`) – Date when the post will be published. The default timezone of the bot is used for localization, which is UTC unless `telegram.ext.Defaults.tzinfo` is used.

  suggested_post_message

    Optional. Message containing the suggested post. Note that the `Message` object in this field will not contain the `reply_to_message` field even if it itself is a reply.

    Type:

      `telegram.Message`

  price

    Optional. Amount paid for the post.

    Type:

      `SuggestedPostPrice`

  send_date

    Date when the post will be published. 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()`.