class

Tourmaline::AffiliateInfo

Inherits JSON::Serializable < Reference < Object

Contains information about the affiliate that received a commission via this transaction.

Constructors

new(commission_per_mille : Int32 | Int64, amount : Int32 | Int64, affiliate_user : Tourmaline::User | Nil = nil, affiliate_chat : Tourmaline::Chat | Nil = nil, nanostar_amount : Int32 | Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

affiliate_chat

Optional. The chat that received an affiliate commission if it was received by a chat

Source
affiliate_chat=(affiliate_chat : Tourmaline::Chat | Nil)

Optional. The chat that received an affiliate commission if it was received by a chat

Source
affiliate_user

Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user

Source
affiliate_user=(affiliate_user : Tourmaline::User | Nil)

Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user

Source
amount

Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds

Source
amount=(amount : Int32 | Int64)

Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds

Source
commission_per_mille

The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users

Source
commission_per_mille=(commission_per_mille : Int32 | Int64)

The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users

Source
nanostar_amount

Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds

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

Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds

Source