Class TdApi.SetAuthenticationPremiumPurchaseTransaction

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

public static class TdApi.SetAuthenticationPremiumPurchaseTransaction extends TdApi.Function<TdApi.Ok>
Informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

Returns Ok

  • Field Details

    • transaction

      public TdApi.StoreTransaction transaction
      Information about the transaction.
    • isRestore

      public boolean isRestore
      Pass true if this is a restore of a Telegram Premium purchase; only for App Store.
    • 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

    • SetAuthenticationPremiumPurchaseTransaction

      public SetAuthenticationPremiumPurchaseTransaction()
      Default constructor for a function, which informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

      Returns Ok

    • SetAuthenticationPremiumPurchaseTransaction

      public SetAuthenticationPremiumPurchaseTransaction(TdApi.StoreTransaction transaction, boolean isRestore, String currency, long amount)
      Creates a function, which informs server about an in-store purchase of Telegram Premium before authorization. Works only when the current authorization state is authorizationStateWaitPremiumPurchase.

      Returns Ok

      Parameters:
      transaction - Information about the transaction.
      isRestore - Pass true if this is a restore of a Telegram Premium purchase; only for App Store.
      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