TransactionPartnerAffiliateProgram¶
- class telegram.TransactionPartnerAffiliateProgram(commission_per_mille, sponsor_user=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TransactionPartner
Describes the affiliate program that issued the affiliate commission received via this transaction.
This object is comparable in terms of equality. Two objects of this class are considered equal, if their
commission_per_mille
are equal.Added in version 21.9.
- Parameters:
sponsor_user (
telegram.User
, optional) – Information about the bot that sponsored the affiliate programcommission_per_mille (
int
) – The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users.
- type[source]¶
The type of the transaction partner, always
'affiliate_program'
.- Type:
- sponsor_user[source]¶
Optional. Information about the bot that sponsored the affiliate program
- Type:
- commission_per_mille[source]¶
The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users.
- Type: