TransactionPartnerUser

class aiogram.types.transaction_partner_user.TransactionPartnerUser(*, type: Literal[TransactionPartnerType.USER] = TransactionPartnerType.USER, user: User, invoice_payload: str | None = None, subscription_period: int | None = None, paid_media: list[PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo] | None = None, paid_media_payload: str | None = None, gift: str | None = None, **extra_data: Any)[source]

Describes a transaction with a user.

Source: https://core.telegram.org/bots/api#transactionpartneruser

type: Literal[TransactionPartnerType.USER]

Type of the transaction partner, always ‘user’

user: User

Information about the user

invoice_payload: str | None

Optional. Bot-specified invoice payload

subscription_period: int | None

Optional. The duration of the paid subscription

model_post_init(context: Any, /) None

We need to both initialize private attributes and call the user-defined model_post_init method.

paid_media: list[PaidMediaPreview | PaidMediaPhoto | PaidMediaVideo] | None

Optional. Information about the paid media bought by the user

paid_media_payload: str | None

Optional. Bot-specified paid media payload

gift: str | None

Optional. The gift sent to the user by the bot