class
Tourmaline::SuggestedPostPaid
- Tourmaline::SuggestedPostPaid
- Reference
- Object
Overview
Describes a service message about a successful payment for a suggested post.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(currency : String, suggested_post_message : Tourmaline::Message | Nil = nil, amount : Int32 | Int64 | Nil = nil, star_amount : Tourmaline::StarAmount | Nil = nil)
Instance Method Summary
-
#amount : Int32 | Int64 | Nil
Optional.
-
#amount=(amount : Int32 | Int64 | Nil)
Optional.
-
#currency : String
Currency in which the payment was made.
-
#currency=(currency : String)
Currency in which the payment was made.
-
#star_amount : Tourmaline::StarAmount | Nil
Optional.
-
#star_amount=(star_amount : Tourmaline::StarAmount | Nil)
Optional.
-
#suggested_post_message : Tourmaline::Message | Nil
Optional.
-
#suggested_post_message=(suggested_post_message : Tourmaline::Message | Nil)
Optional.
Constructor Detail
Instance Method Detail
Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only
Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only
Currency in which the payment was made. Currently, one of "XTR" for Telegram Stars or "TON" for toncoins
Currency in which the payment was made. Currently, one of "XTR" for Telegram Stars or "TON" for toncoins
Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only
Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only
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.
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.