class Tourmaline::AffiliateInfo
- Tourmaline::AffiliateInfo
- Reference
- Object
Overview
Contains information about the affiliate that received a commission via this transaction.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .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)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#affiliate_chat : Tourmaline::Chat | Nil
Optional.
-
#affiliate_chat=(affiliate_chat : Tourmaline::Chat | Nil)
Optional.
-
#affiliate_user : Tourmaline::User | Nil
Optional.
-
#affiliate_user=(affiliate_user : Tourmaline::User | Nil)
Optional.
-
#amount : Int32 | Int64
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
-
#amount=(amount : Int32 | Int64)
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
-
#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
-
#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
-
#nanostar_amount : Int32 | Int64 | Nil
Optional.
-
#nanostar_amount=(nanostar_amount : Int32 | Int64 | Nil)
Optional.
Constructor Detail
Instance Method Detail
Optional. The chat that received an affiliate commission if it was received by a chat
Optional. The chat that received an affiliate commission if it was received by a chat
Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user
Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users
Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds
Optional. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds