telebot-ts API Documentation - v1.0.0
    Preparing search index...

    Interface TransactionPartnerUser

    Describes a transaction with a user.

    interface TransactionPartnerUser {
        affiliate?: AffiliateInfo;
        gift?: Gift;
        invoice_payload?: string;
        paid_media?: PaidMedia[];
        paid_media_payload?: string;
        premium_subscription_duration?: number;
        subscription_period?: number;
        transaction_type: string;
        type: "user";
        user: User;
    }
    Index
    affiliate?: AffiliateInfo

    Information about the affiliate that received a commission via this transaction.

    gift?: Gift

    The gift sent to the user by the bot; for "gift_purchase" transactions only.

    invoice_payload?: string

    Bot-specified invoice payload; for "invoice_payment" transactions only.

    paid_media?: PaidMedia[]

    Information about the paid media bought by the user; for "paid_media_payment" transactions only.

    paid_media_payload?: string

    Bot-specified paid media payload; for "paid_media_payment" transactions only.

    premium_subscription_duration?: number

    Number of months the gifted Telegram Premium subscription will be active for; for "premium_purchase" transactions only.

    subscription_period?: number

    The duration of the paid subscription; for "invoice_payment" transactions only.

    transaction_type: string

    Type of the transaction.

    type: "user"

    Type of the transaction partner, always "user".

    user: User

    Information about the user.