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 Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Paid amount, in the smallest units of the currency.
    static final int
    Identifier uniquely determining type of the object.
    ISO 4217 currency code of the payment currency.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization.
    Creates a function, which checks whether an in-store purchase of Telegram Premium is possible before authorization.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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(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:
      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.Object
      Returns:
      this.CONSTRUCTOR