class
Hamilton::Types::AffiliateInfo
- Hamilton::Types::AffiliateInfo
- Reference
- Object
Overview
Contains information about the affiliate that received a commission via this transaction.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/affiliate_info.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#affiliate_chat : Hamilton::Types::Chat | Nil
The chat that received an affiliate commission if it was received by a chat.
-
#affiliate_chat=(affiliate_chat : Hamilton::Types::Chat | Nil)
The chat that received an affiliate commission if it was received by a chat.
-
#affiliate_user : Hamilton::Types::User | Nil
The bot or the user that received an affiliate commission if it was received by a bot or a user.
-
#affiliate_user=(affiliate_user : Hamilton::Types::User | Nil)
The bot or the user that received an affiliate commission if it was received by a bot or a user.
-
#amount : Int32
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds.
-
#amount=(amount : Int32)
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds.
-
#commission_per_mille : Int32
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)
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users.
-
#nanostar_amount : Int32 | Nil
The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.
-
#nanostar_amount=(nanostar_amount : Int32 | Nil)
The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
The chat that received an affiliate commission if it was received by a chat.
The chat that received an affiliate commission if it was received by a chat.
The bot or the user that received an affiliate commission if it was received by a bot or a user.
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.
The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.
The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.