public static class TdApi.PushMessageContentGiveaway extends TdApi.PushMessageContent
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
isPinned
True, if the message is a pinned message with the specified content.
|
TdApi.GiveawayPrize |
prize
Prize of the giveaway; may be null for pinned message.
|
int |
winnerCount
Number of users which will receive giveaway prizes; 0 for pinned message.
|
| Constructor and Description |
|---|
PushMessageContentGiveaway()
A message with a giveaway.
|
PushMessageContentGiveaway(int winnerCount,
TdApi.GiveawayPrize prize,
boolean isPinned)
A message with a giveaway.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic int winnerCount
public TdApi.GiveawayPrize prize
public boolean isPinned
public static final int CONSTRUCTOR
public PushMessageContentGiveaway()
public PushMessageContentGiveaway(int winnerCount,
TdApi.GiveawayPrize prize,
boolean isPinned)
winnerCount - Number of users which will receive giveaway prizes; 0 for pinned message.prize - Prize of the giveaway; may be null for pinned message.isPinned - True, if the message is a pinned message with the specified content.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object