public static class TdApi.LaunchPrepaidGiveaway extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
giveawayId
Unique identifier of the prepaid giveaway.
|
TdApi.GiveawayParameters |
parameters
Giveaway parameters.
|
long |
starCount
The number of Telegram Stars to be distributed through the giveaway; pass 0 for Telegram Premium giveaways.
|
int |
winnerCount
The number of users to receive giveaway prize.
|
| Constructor and Description |
|---|
LaunchPrepaidGiveaway()
Default 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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long giveawayId
public TdApi.GiveawayParameters parameters
public int winnerCount
public long starCount
public static final int CONSTRUCTOR
public LaunchPrepaidGiveaway()
Returns Ok
public LaunchPrepaidGiveaway(long giveawayId,
TdApi.GiveawayParameters parameters,
int winnerCount,
long starCount)
Returns Ok
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.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object