AffiliateInfo¶
- class telegram.AffiliateInfo(commission_per_mille, amount, affiliate_user=None, affiliate_chat=None, nanostar_amount=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
Contains information about the affiliate that received a commission via this transaction.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
affiliate_user
,affiliate_chat
,commission_per_mille
,amount
, andnanostar_amount
are equal.Available In
Added in version 21.9.
- Parameters:
affiliate_user (
telegram.User
, optional) – The bot or the user that received an affiliate commission if it was received by a bot or a useraffiliate_chat (
telegram.Chat
, optional) – The chat that received an affiliate commission if it was received by a chatcommission_per_mille (
int
) – The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred usersamount (
int
) – Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refundsnanostar_amount (
int
, optional) – The number of1e-09
shares of Telegram Stars received by the affiliate; from-999999999
to999999999
; can be negative for refunds
- affiliate_user[source]¶
Optional. The bot or the user that received an affiliate commission if it was received by a bot or a user
- Type:
- affiliate_chat[source]¶
Optional. The chat that received an affiliate commission if it was received by a chat
- Type:
- commission_per_mille[source]¶
The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users
- Type:
- amount[source]¶
Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds
- Type:
- nanostar_amount[source]¶
Optional. The number of
1e-09
shares of Telegram Stars received by the affiliate; from-999999999
to999999999
; can be negative for refunds- Type: