TransactionPartner¶
- class telegram.TransactionPartner(type, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObjectThis object describes the source of a transaction, or its recipient for outgoing transactions. Currently, it can be one of:
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
typeis equal.Added in version 21.4.
Changed in version 21.11: Added
TransactionPartnerChat- AFFILIATE_PROGRAM = 'affiliate_program'[source]¶
telegram.constants.TransactionPartnerType.AFFILIATE_PROGRAMAdded in version 21.9.
- CHAT = 'chat'[source]¶
telegram.constants.TransactionPartnerType.CHATAdded in version 21.11.