TransactionPartnerUser¶
- class telegram.TransactionPartnerUser(user, invoice_payload=None, *, api_kwargs=None)[source]¶
Bases:
telegram.TransactionPartner
Describes a transaction with a user.
Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their
user
are equal.Added in version 21.4.
- Parameters:
user (
telegram.User
) – Information about the user.invoice_payload (
str
, optional) – Bot-specified invoice payload.
- 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:
data (Dict[
str
, …]) – The JSON data.bot (
telegram.Bot
) – The bot associated with this object.
- Returns:
The Telegram object.