Skip to content
Back to top
View this page

# SuggestedPostRefunded

class telegram.SuggestedPostRefunded(reason, suggested_post_message=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Describes a service message about a payment refund for a suggested post.

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

  Available In

  `telegram.Message.suggested_post_refunded`

  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.

    - reason (`str`) – Reason for the refund. Currently, one of `'post_deleted'` if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or `'payment_refunded'` if the payer refunded their payment.

  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`

  reason

    Reason for the refund. Currently, one of `'post_deleted'` if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or `'payment_refunded'` if the payer refunded their payment.

    Type:

      `str`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.