Class TdApi.TelegramPaymentPurposePremiumGiftCodes

Enclosing class:
TdApi

public static class TdApi.TelegramPaymentPurposePremiumGiftCodes extends TdApi.TelegramPaymentPurpose
The user creating Telegram Premium gift codes for other users.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    Paid amount, in the smallest units of the currency.
    long
    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; 0 if none.
    static final int
    Identifier uniquely determining type of the object.
    ISO 4217 currency code of the payment currency.
    int
    Number of months the Telegram Premium subscription will be active for the users.
    long[]
    Identifiers of the users which can activate the gift codes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    The user creating Telegram Premium gift codes for other users.
    TelegramPaymentPurposePremiumGiftCodes(long boostedChatId, String currency, long amount, long[] userIds, int monthCount)
    The user creating Telegram Premium gift codes for other users.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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; 0 if none.
    • 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.
    • monthCount

      public int monthCount
      Number of months the Telegram Premium subscription will be active for the users.
    • CONSTRUCTOR

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

    • TelegramPaymentPurposePremiumGiftCodes

      public TelegramPaymentPurposePremiumGiftCodes()
      The user creating Telegram Premium gift codes for other users.
    • TelegramPaymentPurposePremiumGiftCodes

      public TelegramPaymentPurposePremiumGiftCodes(long boostedChatId, String currency, long amount, long[] userIds, int monthCount)
      The user 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; 0 if none.
      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.
      monthCount - Number of months the Telegram Premium subscription will be active for the users.
  • 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