Module tdlight.api

Class TdApi.CanPurchasePremium

Enclosing class:
TdApi

public static final class TdApi.CanPurchasePremium extends TdApi.Function<TdApi.Ok>
Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase. Returns Ok
  • Field Details

  • Constructor Details

    • CanPurchasePremium

      public CanPurchasePremium()
      Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase. Returns Ok
    • CanPurchasePremium

      public CanPurchasePremium(TdApi.StorePaymentPurpose purpose)
      Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase. Returns Ok
      Parameters:
      purpose - StorePaymentPurpose Transaction purpose.
    • CanPurchasePremium

      public CanPurchasePremium(DataInput input) throws IOException
      Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase. Returns Ok
      Throws:
      IOException
  • Method Details