class Tourmaline::AffiliateInfo

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def affiliate_chat : Tourmaline::Chat | Nil #

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


[View source]
def affiliate_chat=(affiliate_chat : Tourmaline::Chat | Nil) #

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


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


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


[View source]
def amount : Int32 | Int64 #

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


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

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


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


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


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


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


[View source]