class

Tourmaline::SuggestedPostPaid

Inherits JSON::Serializable < Reference < Object

Describes a service message about a successful payment for a suggested post.

Constructors

new(currency : String, suggested_post_message : Tourmaline::Message | Nil = nil, amount : Int32 | Int64 | Nil = nil, star_amount : Tourmaline::StarAmount | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

amount

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

Source
amount=(amount : Int32 | Int64 | Nil)

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

Source
currency

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

Source
currency=(currency : String)

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

Source
star_amount

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

Source
star_amount=(star_amount : Tourmaline::StarAmount | Nil)

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

Source
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.

Source
suggested_post_message=(suggested_post_message : Tourmaline::Message | Nil)

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.

Source