Interface StarTransactionTypeBotSubscriptionSale

The transaction is a sale of a subscription by the bot; for bots only. Subtype of StarTransactionType.

interface StarTransactionTypeBotSubscriptionSale {
    @type: "starTransactionTypeBotSubscriptionSale";
    affiliate: AffiliateInfo;
    invoice_payload: string;
    product_info: ProductInfo;
    subscription_period: number;
    user_id: number;
}

Properties

@type: "starTransactionTypeBotSubscriptionSale"
affiliate: AffiliateInfo

Information about the affiliate which received commission from the transaction; may be null if none.

invoice_payload: string

Invoice payload.

product_info: ProductInfo

Information about the bought subscription.

subscription_period: number

The number of seconds between consecutive Telegram Star debitings.

user_id: number

Identifier of the user that bought the subscription.