Module tdlight.api

Class TdApi.StorePaymentPurposeGiftedPremium

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.StorePaymentPurpose
it.tdlight.jni.TdApi.StorePaymentPurposeGiftedPremium
Enclosing class:
TdApi

public static final class TdApi.StorePaymentPurposeGiftedPremium extends TdApi.StorePaymentPurpose
The user gifted Telegram Premium to another user.
  • Field Details

    • userId

      public long userId
      Identifier of the user for which Premium was gifted.
    • 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
      See Also:
  • Constructor Details

    • StorePaymentPurposeGiftedPremium

      public StorePaymentPurposeGiftedPremium()
      The user gifted Telegram Premium to another user.
    • StorePaymentPurposeGiftedPremium

      public StorePaymentPurposeGiftedPremium(long userId, String currency, long amount)
      The user gifted Telegram Premium to another user.
      Parameters:
      userId - long Identifier of the user for which Premium was gifted.
      currency - String ISO 4217 currency code of the payment currency.
      amount - long Paid amount, in the smallest units of the currency.
    • StorePaymentPurposeGiftedPremium

      public StorePaymentPurposeGiftedPremium(DataInput input) throws IOException
      The user gifted Telegram Premium to another user.
      Throws:
      IOException
  • Method Details