TransactionPartnerUser¶
- class telegram.TransactionPartnerUser(user, invoice_payload=None, paid_media=None, paid_media_payload=None, subscription_period=None, gift=None, affiliate=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.affiliate (
telegram.AffiliateInfo
, optional) –Information about the affiliate that received a commission via this transaction
Added in version 21.9.
invoice_payload (
str
, optional) – Bot-specified invoice payload.subscription_period (
datetime.timedelta
, optional) –The duration of the paid subscription
Added in version 21.8.
paid_media (Sequence[
telegram.PaidMedia
], optional) –Information about the paid media bought by the user.
Added in version 21.5.
paid_media_payload (
str
, optional) –Bot-specified paid media payload.
Added in version 21.6.
gift (
telegram.Gift
, optional) –The gift sent to the user by the bot
Added in version 21.8.
- affiliate[source]¶
Optional. Information about the affiliate that received a commission via this transaction
Added in version 21.9.
- Type:
- subscription_period[source]¶
Optional. The duration of the paid subscription
Added in version 21.8.
- Type:
- 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. Bot-specified paid media payload.
Added in version 21.6.
- Type: