TransactionPartner¶
- class telegram.TransactionPartner(type, *, api_kwargs=None)[source]¶
Bases:
telegram.TelegramObject
This 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
type
is equal.Added in version 21.4.
- classmethod de_json(data, bot=None)[source]¶
Converts JSON data to the appropriate
TransactionPartner
object, i.e. takes care of selecting the correct subclass.- Parameters:
bot (
telegram.Bot
) – The bot associated with this object.
- Returns:
The Telegram object.