Package org.drinkless.tdlib
Class TdApi.LaunchPrepaidGiveaway
- Enclosing class:
- TdApi
Launches a prepaid giveaway.
Returns Ok
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Identifier uniquely determining type of the object.long
Unique identifier of the prepaid giveaway.Giveaway parameters.long
The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.int
The 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 TypeMethodDescriptionint
Returns 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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-