SuggestedPostPaid¶
- class telegram.SuggestedPostPaid(currency, suggested_post_message=None, amount=None, star_amount=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectDescribes 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
Added in version 22.4.
- Parameters:
suggested_post_message (
telegram.Message, optional) – Message containing the suggested post. Note that theMessageobject in this field will not contain thereply_to_messagefield 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[source]¶
Optional. Message containing the suggested post. Note that the
Messageobject in this field will not contain thereply_to_messagefield even if it itself is a reply.- Type:
- currency[source]¶
Currency in which the payment was made. Currently, one of
“XTR”for Telegram Stars or“TON”for toncoins.- Type:
str
- amount[source]¶
Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only.
- Type:
int
- star_amount[source]¶
Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only.
- Type: