Layer 220
constructor
inputStorePaymentPremiumSubscription#a6751e66 flags:# restore:flags.0?true upgrade:flags.1?true = InputStorePaymentPurpose;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Restore flags.0?true Pass true if this is a restore of a Telegram Premium purchase; only for the App Store
Upgrade flags.1?true Pass true if this is an upgrade from a monthly subscription to a yearly subscription; only for App Store

Gogram Example

// Creating InputStorePaymentPremiumSubscription constructor
obj := &tg.InputStorePaymentPremiumSubscription{

    // Optional fields:
    // Restore: true,
    // Upgrade: true,
}