public static class TdApi.PrepaidGiveaway extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
int |
boostCount
The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
id
Unique identifier of the prepaid giveaway.
|
int |
paymentDate
Point in time (Unix timestamp) when the giveaway was paid.
|
TdApi.GiveawayPrize |
prize
Prize of the giveaway.
|
int |
winnerCount
Number of users which will receive giveaway prize.
|
| Constructor and Description |
|---|
PrepaidGiveaway()
Describes a prepaid giveaway.
|
PrepaidGiveaway(long id,
int winnerCount,
TdApi.GiveawayPrize prize,
int boostCount,
int paymentDate)
Describes a prepaid giveaway.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long id
public int winnerCount
public TdApi.GiveawayPrize prize
public int boostCount
public int paymentDate
public static final int CONSTRUCTOR
public PrepaidGiveaway()
public PrepaidGiveaway(long id,
int winnerCount,
TdApi.GiveawayPrize prize,
int boostCount,
int paymentDate)
id - Unique identifier of the prepaid giveaway.winnerCount - Number of users which will receive giveaway prize.prize - Prize of the giveaway.boostCount - The number of boosts received by the chat from the giveaway; for Telegram Star giveaways only.paymentDate - Point in time (Unix timestamp) when the giveaway was paid.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object