Package org.drinkless.tdlib
Class TdApi.TelegramPaymentPurposeStarGiveaway
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.TelegramPaymentPurpose
org.drinkless.tdlib.TdApi.TelegramPaymentPurposeStarGiveaway
- Enclosing class:
- TdApi
The user creating a Telegram Star 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.Giveaway parameters.longThe number of Telegram Stars to be distributed through the giveaway.intThe number of users to receive Telegram Stars. -
Constructor Summary
ConstructorsConstructorDescriptionThe user creating a Telegram Star giveaway.TelegramPaymentPurposeStarGiveaway(TdApi.GiveawayParameters parameters, String currency, long amount, int winnerCount, long starCount) The user creating a Telegram Star 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 winnerCountThe number of users to receive Telegram Stars. -
starCount
public long starCountThe number of Telegram Stars to be distributed through the giveaway. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
TelegramPaymentPurposeStarGiveaway
public TelegramPaymentPurposeStarGiveaway()The user creating a Telegram Star giveaway. -
TelegramPaymentPurposeStarGiveaway
public TelegramPaymentPurposeStarGiveaway(TdApi.GiveawayParameters parameters, String currency, long amount, int winnerCount, long starCount) The user creating a Telegram Star 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- The number of users to receive Telegram Stars.starCount- The number of Telegram Stars to be distributed through the giveaway.
-
-
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
-