Class TdApi.CheckAuthenticationPremiumPurchase

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.Ok>
org.drinkless.tdlib.TdApi.CheckAuthenticationPremiumPurchase
Enclosing class:
TdApi

public static class TdApi.CheckAuthenticationPremiumPurchase extends TdApi.Function<TdApi.Ok>
Checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

Returns Ok

  • Field Details

    • premiumDayCount

      public int premiumDayCount
      The number of days for which the Telegram Premium subscription will be granted.
    • currency

      public String currency
      ISO 4217 currency code of the payment currency.
    • amount

      public long amount
      Paid amount, in the smallest units of the currency.
    • CONSTRUCTOR

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

    • CheckAuthenticationPremiumPurchase

      public CheckAuthenticationPremiumPurchase()
      Default constructor for a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

      Returns Ok

    • CheckAuthenticationPremiumPurchase

      public CheckAuthenticationPremiumPurchase(int premiumDayCount, String currency, long amount)
      Creates a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

      Returns Ok

      Parameters:
      premiumDayCount - The number of days for which the Telegram Premium subscription will be granted.
      currency - ISO 4217 currency code of the payment currency.
      amount - Paid amount, in the smallest units of the currency.
  • 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.Function<TdApi.Ok>
      Returns:
      this.CONSTRUCTOR