AffiliateInfo class

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

Constructors

AffiliateInfo({User? affiliateUser, Chat? affiliateChat, required int commissionPerMille, required int amount, int? nanostarAmount})
Constructs an AffiliateInfo object.
const
AffiliateInfo.fromJson(Map<String, dynamic> json)
Creates an AffiliateInfo object from JSON.
factory

Properties

affiliateChat Chat?
The chat that received an affiliate commission if it was received by a chat.
final
affiliateUser User?
The bot or the user that received an affiliate commission if it was received by a bot or a user.
final
amount int
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds.
final
commissionPerMille int
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users.
final
hashCode int
The hash code for this object.
no setterinherited
nanostarAmount int?
The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an AffiliateInfo object to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited