TransactionPartnerUser

class telegram.TransactionPartnerUser(user, invoice_payload=None, paid_media=None, paid_media_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:
type[source]

The type of the transaction partner, always 'user'.

Type:

str

user[source]

Information about the user.

Type:

telegram.User

invoice_payload[source]

Optional. Bot-specified invoice payload.

Type:

str

paid_media[source]

Optional. Information about the paid media bought by the user.

Added in version 21.5.

Type:

tuple[telegram.PaidMedia]

paid_media_payload[source]

Optional. Optional. Bot-specified paid media payload.

Added in version 21.6.

Type:

str

classmethod de_json(data, bot=None)[source]

See telegram.TransactionPartner.de_json().