Class TdApi.StorePaymentPurposePremiumGift

Enclosing class:
TdApi

public static class TdApi.StorePaymentPurposePremiumGift extends TdApi.StorePaymentPurpose
The user gifting Telegram Premium to another user.
  • 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.
    • userId

      public long userId
      Identifiers of the user which will receive Telegram Premium.
    • text

      public TdApi.FormattedText text
      Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.
    • CONSTRUCTOR

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

    • StorePaymentPurposePremiumGift

      public StorePaymentPurposePremiumGift()
      The user gifting Telegram Premium to another user.
    • StorePaymentPurposePremiumGift

      public StorePaymentPurposePremiumGift(String currency, long amount, long userId, TdApi.FormattedText text)
      The user gifting Telegram Premium to another user.
      Parameters:
      currency - ISO 4217 currency code of the payment currency.
      amount - Paid amount, in the smallest units of the currency.
      userId - Identifiers of the user which will receive Telegram Premium.
      text - Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities are allowed.
  • 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