Module tdlight.api

Class TdApi.PremiumPaymentOption

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PremiumPaymentOption
Enclosing class:
TdApi

public static final class TdApi.PremiumPaymentOption extends TdApi.Object
Describes an option for buying Telegram Premium to a user.
  • Field Details

    • currency

      public String currency
      ISO 4217 currency code for Telegram Premium subscription payment.
    • amount

      public long amount
      The amount to pay, in the smallest units of the currency.
    • discountPercentage

      public int discountPercentage
      The discount associated with this option, as a percentage.
    • monthCount

      public int monthCount
      Number of month the Telegram Premium subscription will be active.
    • storeProductId

      public String storeProductId
      Identifier of the store product associated with the option.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • PremiumPaymentOption

      public PremiumPaymentOption()
      Describes an option for buying Telegram Premium to a user.
    • PremiumPaymentOption

      public PremiumPaymentOption(String currency, long amount, int discountPercentage, int monthCount, String storeProductId, TdApi.InternalLinkType paymentLink)
      Describes an option for buying Telegram Premium to a user.
      Parameters:
      currency - String ISO 4217 currency code for Telegram Premium subscription payment.
      amount - long The amount to pay, in the smallest units of the currency.
      discountPercentage - int The discount associated with this option, as a percentage.
      monthCount - int Number of month the Telegram Premium subscription will be active.
      storeProductId - String Identifier of the store product associated with the option.
      paymentLink - InternalLinkType An internal link to be opened for buying Telegram Premium to the user if store payment isn't possible; may be null if direct payment isn't available.
    • PremiumPaymentOption

      public PremiumPaymentOption(DataInput input) throws IOException
      Describes an option for buying Telegram Premium to a user.
      Throws:
      IOException
  • Method Details