Skip to content
Back to top
View this page

# SuggestedPostPaid

class telegram.SuggestedPostPaid(currency, suggested_post_message=None, amount=None, star_amount=None, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Describes a service message about a successful payment for 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_paid`

  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.

    - currency (`str`) – Currency in which the payment was made. Currently, one of `“XTR”` for Telegram Stars or `“TON”` for toncoins.

    - amount (`int`, optional) – The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.

    - star_amount (`telegram.StarAmount`, optional) – The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.

  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`

  currency

    Currency in which the payment was made. Currently, one of `“XTR”` for Telegram Stars or `“TON”` for toncoins.

    Type:

      `str`

  amount

    Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.

    Type:

      `int`

  star_amount

    Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.

    Type:

      `telegram.StarAmount`

  classmethod de_json(data, bot=None)

    See `telegram.TelegramObject.de_json()`.