class Tourmaline::SuggestedPostPaid

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(currency : String, suggested_post_message : Tourmaline::Message | Nil = nil, amount : Int32 | Int64 | Nil = nil, star_amount : Tourmaline::StarAmount | Nil = nil) #

[View source]

Instance Method Detail

def amount : Int32 | Int64 | Nil #

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


[View source]
def amount=(amount : Int32 | Int64 | Nil) #

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


[View source]
def currency : String #

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


[View source]
def currency=(currency : String) #

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


[View source]
def star_amount : Tourmaline::StarAmount | Nil #

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


[View source]
def 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


[View source]
def 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.


[View source]
def 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.


[View source]