Class TdApi.StorePaymentPurposePremiumSubscription

Enclosing class:
TdApi

public static class TdApi.StorePaymentPurposePremiumSubscription extends TdApi.StorePaymentPurpose
The user subscribing to Telegram Premium.
  • Field Details

    • isRestore

      public boolean isRestore
      Pass true if this is a restore of a Telegram Premium purchase; only for App Store.
    • isUpgrade

      public boolean isUpgrade
      Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • StorePaymentPurposePremiumSubscription

      public StorePaymentPurposePremiumSubscription()
      The user subscribing to Telegram Premium.
    • StorePaymentPurposePremiumSubscription

      public StorePaymentPurposePremiumSubscription(boolean isRestore, boolean isUpgrade)
      The user subscribing to Telegram Premium.
      Parameters:
      isRestore - Pass true if this is a restore of a Telegram Premium purchase; only for App Store.
      isUpgrade - Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR