Interface SetAuthenticationPremiumPurchaseTransaction

Informs 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;
    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 App Store.

transaction: StoreTransaction

Information about the transaction.