Interface SetAuthenticationPremiumPurchaseTransaction

Informs the server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase. Request type for Tdjson#setAuthenticationPremiumPurchaseTransaction.

interface SetAuthenticationPremiumPurchaseTransaction {
    @type: "setAuthenticationPremiumPurchaseTransaction";
    amount: number;
    currency: string;
    is_restore?: boolean;
    premium_day_count: number;
    transaction: StoreTransaction;
}

Properties

@type: "setAuthenticationPremiumPurchaseTransaction"
amount: number

Paid amount, in the smallest units of the currency.

currency: string

ISO 4217 currency code of the payment currency.

is_restore?: boolean

Pass true if this is a restore of a Telegram Premium purchase; only for the App Store.

premium_day_count: number

The number of days for which the Telegram Premium subscription will be granted.

transaction: StoreTransaction

Information about the transaction.