public static class TdApi.ChatBoostSourceGiveaway extends TdApi.ChatBoostSource
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
java.lang.String |
giftCode
The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise; for Telegram Premium giveways only.
|
long |
giveawayMessageId
Identifier of the corresponding giveaway message; can be an identifier of a deleted message.
|
boolean |
isUnclaimed
True, if the winner for the corresponding giveaway prize wasn't chosen, because there were not enough participants.
|
long |
starCount
Number of Telegram Stars distributed among winners of the giveaway.
|
long |
userId
Identifier of a user that won in the giveaway; 0 if none.
|
| Constructor and Description |
|---|
ChatBoostSourceGiveaway()
The chat created a giveaway.
|
ChatBoostSourceGiveaway(long userId,
java.lang.String giftCode,
long starCount,
long giveawayMessageId,
boolean isUnclaimed)
The chat created a giveaway.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long userId
public java.lang.String giftCode
public long starCount
public long giveawayMessageId
public boolean isUnclaimed
public static final int CONSTRUCTOR
public ChatBoostSourceGiveaway()
public ChatBoostSourceGiveaway(long userId,
java.lang.String giftCode,
long starCount,
long giveawayMessageId,
boolean isUnclaimed)
userId - Identifier of a user that won in the giveaway; 0 if none.giftCode - The created Telegram Premium gift code if it was used by the user or can be claimed by the current user; an empty string otherwise; for Telegram Premium giveways only.starCount - Number of Telegram Stars distributed among winners of the giveaway.giveawayMessageId - Identifier of the corresponding giveaway message; can be an identifier of a deleted message.isUnclaimed - True, if the winner for the corresponding giveaway prize wasn't chosen, because there were not enough participants.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object