Skip to content
Back to top
View this page

# SuggestedPostApprovalFailed

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

  Bases: `telegram.TelegramObject`

  Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their `suggested_post_message` and `price` are equal.

  Available In

  `telegram.Message.suggested_post_approval_failed`

  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`) – Expected price of the post.

  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

    Expected price of the post.

    Type:

      `SuggestedPostPrice`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.