Package org.drinkless.tdlib
Class TdApi.LaunchPrepaidGiveaway
- Enclosing class:
- TdApi
Launches a prepaid giveaway.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longUnique identifier of the prepaid giveaway.Giveaway parameters.longThe number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.intThe number of users to receive giveaway prize. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which launches a prepaid giveaway.LaunchPrepaidGiveaway(long giveawayId, TdApi.GiveawayParameters parameters, int winnerCount, long starCount) Creates a function, which launches a prepaid giveaway. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
giveawayId
public long giveawayIdUnique identifier of the prepaid giveaway. -
parameters
Giveaway parameters. -
winnerCount
public int winnerCountThe number of users to receive giveaway prize. -
starCount
public long starCountThe number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
LaunchPrepaidGiveaway
public LaunchPrepaidGiveaway()Default constructor for a function, which launches a prepaid giveaway.Returns
Ok -
LaunchPrepaidGiveaway
public LaunchPrepaidGiveaway(long giveawayId, TdApi.GiveawayParameters parameters, int winnerCount, long starCount) Creates a function, which launches a prepaid giveaway.Returns
Ok- Parameters:
giveawayId- Unique identifier of the prepaid giveaway.parameters- Giveaway parameters.winnerCount- The number of users to receive giveaway prize.starCount- The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.
-
-
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
-