public static class TdApi.MessageGiveaway extends TdApi.MessageContent
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.GiveawayParameters |
parameters
Giveaway parameters.
|
TdApi.GiveawayPrize |
prize
Prize of the giveaway.
|
TdApi.Sticker |
sticker
A sticker to be shown in the message; may be null if unknown.
|
int |
winnerCount
Number of users which will receive Telegram Premium subscription gift codes.
|
| Constructor and Description |
|---|
MessageGiveaway()
A giveaway.
|
MessageGiveaway(TdApi.GiveawayParameters parameters,
int winnerCount,
TdApi.GiveawayPrize prize,
TdApi.Sticker sticker)
A giveaway.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic TdApi.GiveawayParameters parameters
public int winnerCount
public TdApi.GiveawayPrize prize
public TdApi.Sticker sticker
public static final int CONSTRUCTOR
public MessageGiveaway()
public MessageGiveaway(TdApi.GiveawayParameters parameters, int winnerCount, TdApi.GiveawayPrize prize, TdApi.Sticker sticker)
parameters - Giveaway parameters.winnerCount - Number of users which will receive Telegram Premium subscription gift codes.prize - Prize of the giveaway.sticker - A sticker to be shown in the message; may be null if unknown.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object