Skip to content
Back to top
View this page

# SuggestedPostPrice

class telegram.SuggestedPostPrice(currency, amount, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  Desribes the price of a suggested post.

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

  Available In

  - `telegram.SuggestedPostApprovalFailed.price`

  - `telegram.SuggestedPostApproved.price`

  - `telegram.SuggestedPostInfo.price`

  - `telegram.SuggestedPostParameters.price`

  Added in version 22.4.

  Parameters:

    - currency (`str`) – Currency in which the post will be paid. Currently, must be one of `“XTR”` for Telegram Stars or `“TON”` for toncoins.

    - amount (`int`) – The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between `5` and `100000`, and price in nanotoncoins must be between `10000000` and `10000000000000`.

  currency

    Currency in which the post will be paid. Currently, must be one of `“XTR”` for Telegram Stars or `“TON”` for toncoins.

    Type:

      `str`

  amount

    The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between `5` and `100000`, and price in nanotoncoins must be between `10000000` and `10000000000000`.

    Type:

      `int`