Class TdApi.StorePaymentPurposePremiumGiftCodes

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.StorePaymentPurpose
org.drinkless.tdlib.TdApi.StorePaymentPurposePremiumGiftCodes
Enclosing class:
TdApi

public static class TdApi.StorePaymentPurposePremiumGiftCodes extends TdApi.StorePaymentPurpose
The user boosting a chat by creating Telegram Premium gift codes for other users.
  • Field Details

    • boostedChatId

      public long boostedChatId
      Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user.
    • 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.
    • userIds

      public long[] userIds
      Identifiers of the users which can activate the gift codes.
    • 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, CustomEmoji, and DateTime entities are allowed.
    • CONSTRUCTOR

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

    • StorePaymentPurposePremiumGiftCodes

      public StorePaymentPurposePremiumGiftCodes()
      The user boosting a chat by creating Telegram Premium gift codes for other users.
    • StorePaymentPurposePremiumGiftCodes

      public StorePaymentPurposePremiumGiftCodes(long boostedChatId, String currency, long amount, long[] userIds, TdApi.FormattedText text)
      The user boosting a chat by creating Telegram Premium gift codes for other users.
      Parameters:
      boostedChatId - Identifier of the supergroup or channel chat, which will be automatically boosted by the users for duration of the Premium subscription and which is administered by the user.
      currency - ISO 4217 currency code of the payment currency.
      amount - Paid amount, in the smallest units of the currency.
      userIds - Identifiers of the users which can activate the gift codes.
      text - Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters. Only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, and DateTime entities are allowed.
  • Method Details