AffiliateInfo

@Serializable
data class AffiliateInfo(val affiliateUser: User? = null, val affiliateChat: Chat? = null, val commissionPerMille: Int, val amount: Int, val nanostarAmount: Int? = null)

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

Api reference

Constructors

Link copied to clipboard
constructor(affiliateUser: User? = null, affiliateChat: Chat? = null, commissionPerMille: Int, amount: Int, nanostarAmount: Int? = null)

Properties

Link copied to clipboard
val affiliateChat: Chat? = null

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

Link copied to clipboard
val affiliateUser: User? = null

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

Link copied to clipboard
val amount: Int

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

Link copied to clipboard

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

Link copied to clipboard
val nanostarAmount: Int? = null

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