Package org.drinkless.tdlib

# Class TdApi.TelegramPaymentPurposePremiumGiveaway

java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TelegramPaymentPurpose
org.drinkless.tdlib.TdApi.TelegramPaymentPurposePremiumGiveaway

Enclosing class:
  TdApi

public static class TdApi.TelegramPaymentPurposePremiumGiveaway extends TdApi.TelegramPaymentPurpose
The user creating a Telegram Premium giveaway.

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.TelegramPaymentPurpose

  `TdApi.TelegramPaymentPurpose.Constructors`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `long`
  `amount`
  Paid amount, in the smallest units of the currency.
  `static final int`
  `CONSTRUCTOR`
  Identifier uniquely determining type of the object.
  `String`
  `currency`
  ISO 4217 currency code of the payment currency.
  `int`
  `monthCount`
  Number of months the Telegram Premium subscription will be active for the users.
  `TdApi.PremiumGiveawayParameters`
  `parameters`
  Giveaway parameters.
  `int`
  `winnerCount`
  Number of users which will be able to activate the gift codes.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TelegramPaymentPurposePremiumGiveaway()`
  The user creating a Telegram Premium giveaway.
  `TelegramPaymentPurposePremiumGiveaway(TdApi.PremiumGiveawayParameters parameters, String currency, long amount, int winnerCount, int monthCount)`
  The user creating a Telegram Premium giveaway.

- ## Method Summary

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

  ### Methods inherited from class org.drinkless.tdlib.TdApi.Object

  `toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### parameters

    public TdApi.PremiumGiveawayParameters parameters
    Giveaway parameters.

  - ### 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.

  - ### winnerCount

    public int winnerCount
    Number of users which will be able to 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:
      - Constant Field Values

- ## Constructor Details

  - ### TelegramPaymentPurposePremiumGiveaway

    public TelegramPaymentPurposePremiumGiveaway()
    The user creating a Telegram Premium giveaway.

  - ### TelegramPaymentPurposePremiumGiveaway

    public TelegramPaymentPurposePremiumGiveaway(TdApi.PremiumGiveawayParameters parameters, String currency, long amount, int winnerCount, int monthCount)
    The user creating a Telegram Premium giveaway.
    Parameters:
      `parameters` - Giveaway parameters.
      `currency` - ISO 4217 currency code of the payment currency.
      `amount` - Paid amount, in the smallest units of the currency.
      `winnerCount` - Number of users which will be able to 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.TelegramPaymentPurpose`
    Returns:
      this.CONSTRUCTOR