Interface StarTransactionTypeBotSubscriptionPurchase

The transaction is a purchase of a subscription from a bot or a business account by the current user; for regular users only. Subtype of StarTransactionType.

interface StarTransactionTypeBotSubscriptionPurchase {
    @type: "starTransactionTypeBotSubscriptionPurchase";
    product_info: ProductInfo;
    subscription_period: number;
    user_id: number;
}

Properties

@type: "starTransactionTypeBotSubscriptionPurchase"
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 bot or the business account user that created the subscription link.