public static class TdApi.MessageGiveawayWinners extends TdApi.MessageContent
| Modifier and Type | Field and Description |
|---|---|
int |
actualWinnersSelectionDate
Point in time (Unix timestamp) when the winners were selected.
|
int |
additionalChatCount
Number of other chats that participated in the giveaway.
|
long |
boostedChatId
Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
long |
giveawayMessageId
Identifier of the message with the giveaway in the boosted chat.
|
boolean |
onlyNewMembers
True, if only new members of the chats were eligible for the giveaway.
|
TdApi.GiveawayPrize |
prize
Prize of the giveaway.
|
java.lang.String |
prizeDescription
Additional description of the giveaway prize.
|
int |
unclaimedPrizeCount
Number of undistributed prizes; for Telegram Premium giveaways only.
|
boolean |
wasRefunded
True, if the giveaway was canceled and was fully refunded.
|
int |
winnerCount
Total number of winners in the giveaway.
|
long[] |
winnerUserIds
Up to 100 user identifiers of the winners of the giveaway.
|
| Constructor and Description |
|---|
MessageGiveawayWinners()
A giveaway with public winners has been completed for the chat.
|
MessageGiveawayWinners(long boostedChatId,
long giveawayMessageId,
int additionalChatCount,
int actualWinnersSelectionDate,
boolean onlyNewMembers,
boolean wasRefunded,
TdApi.GiveawayPrize prize,
java.lang.String prizeDescription,
int winnerCount,
long[] winnerUserIds,
int unclaimedPrizeCount)
A giveaway with public winners has been completed for the chat.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long boostedChatId
public long giveawayMessageId
public int additionalChatCount
public int actualWinnersSelectionDate
public boolean onlyNewMembers
public boolean wasRefunded
public TdApi.GiveawayPrize prize
public java.lang.String prizeDescription
public int winnerCount
public long[] winnerUserIds
public int unclaimedPrizeCount
public static final int CONSTRUCTOR
public MessageGiveawayWinners()
public MessageGiveawayWinners(long boostedChatId,
long giveawayMessageId,
int additionalChatCount,
int actualWinnersSelectionDate,
boolean onlyNewMembers,
boolean wasRefunded,
TdApi.GiveawayPrize prize,
java.lang.String prizeDescription,
int winnerCount,
long[] winnerUserIds,
int unclaimedPrizeCount)
boostedChatId - Identifier of the supergroup or channel chat, which was automatically boosted by the winners of the giveaway.giveawayMessageId - Identifier of the message with the giveaway in the boosted chat.additionalChatCount - Number of other chats that participated in the giveaway.actualWinnersSelectionDate - Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway.onlyNewMembers - True, if only new members of the chats were eligible for the giveaway.wasRefunded - True, if the giveaway was canceled and was fully refunded.prize - Prize of the giveaway.prizeDescription - Additional description of the giveaway prize.winnerCount - Total number of winners in the giveaway.winnerUserIds - Up to 100 user identifiers of the winners of the giveaway.unclaimedPrizeCount - Number of undistributed prizes; for Telegram Premium giveaways only.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object