Interface StorePaymentPurposePremiumSubscription

Describes a purpose of an in-store payment. Subtype of StorePaymentPurpose.

interface StorePaymentPurposePremiumSubscription {
    @type: "storePaymentPurposePremiumSubscription";
    is_restore?: boolean;
    is_upgrade?: boolean;
}

Properties

@type: "storePaymentPurposePremiumSubscription"
is_restore?: boolean

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

is_upgrade?: boolean

Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store.