peyk.platforms.telegram.types.suggested_post_price¶
Classes
|
Describes the price of a suggested post. |
- class peyk.platforms.telegram.types.suggested_post_price.SuggestedPostPrice(label: str = '', amount: int = 0)[source]¶
Bases:
objectDescribes the price of a suggested post.
- Variables:
currency – Currency in which the post will be paid. Currently, must be one of ‘XTR’ for Telegram Stars or ‘TON’ for TON grams.
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 nanograms. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanograms must be between 10000000 and 10000000000000.
- label: str = ''¶
- amount: int = 0¶
- classmethod from_dict(data: dict | None) SuggestedPostPrice | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.