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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongPaid amount, in the smallest units of the currency.static final intIdentifier uniquely determining type of the object.ISO 4217 currency code of the payment currency.intNumber of months the Telegram Premium subscription will be active for the users.Giveaway parameters.intNumber of users which will be able to activate the gift codes. -
Constructor Summary
ConstructorsConstructorDescriptionThe user creating a Telegram Premium giveaway.TelegramPaymentPurposePremiumGiveaway(TdApi.GiveawayParameters parameters, String currency, long amount, int winnerCount, int monthCount) The user creating a Telegram Premium giveaway. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
parameters
Giveaway parameters. -
currency
ISO 4217 currency code of the payment currency. -
amount
public long amountPaid amount, in the smallest units of the currency. -
winnerCount
public int winnerCountNumber of users which will be able to activate the gift codes. -
monthCount
public int monthCountNumber of months the Telegram Premium subscription will be active for the users. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
TelegramPaymentPurposePremiumGiveaway
public TelegramPaymentPurposePremiumGiveaway()The user creating a Telegram Premium giveaway. -
TelegramPaymentPurposePremiumGiveaway
public TelegramPaymentPurposePremiumGiveaway(TdApi.GiveawayParameters 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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-