Class TdApi.MessagePremiumGiveawayWinners
java.lang.Object
dev.voroby.springframework.telegram.client.TdApi.Object
dev.voroby.springframework.telegram.client.TdApi.MessageContent
dev.voroby.springframework.telegram.client.TdApi.MessagePremiumGiveawayWinners
- Enclosing class:
- TdApi
A Telegram Premium giveaway with public winners has been completed for the chat.
-
Field Summary
Modifier and TypeFieldDescriptionint
Point in time (Unix timestamp) when the winners were selected.int
Number of other chats that participated in the giveaway.long
Identifier of the channel chat, which was automatically boosted by the winners of the giveaway for duration of the Premium subscription.static final int
Identifier uniquely determining type of the object.long
Identifier of the message with the giveaway in the boosted chat.int
Number of months the Telegram Premium subscription will be active after code activation.boolean
True, if only new members of the chats were eligible for the giveaway.Additional description of the giveaway prize.int
Number of undistributed prizes.boolean
True, if the giveaway was canceled and was fully refunded.int
Total number of winners in the giveaway.long[]
Up to 100 user identifiers of the winners of the giveaway. -
Constructor Summary
ConstructorDescriptionA Telegram Premium giveaway with public winners has been completed for the chat.MessagePremiumGiveawayWinners
(long boostedChatId, long giveawayMessageId, int additionalChatCount, int actualWinnersSelectionDate, boolean onlyNewMembers, boolean wasRefunded, int monthCount, String prizeDescription, int winnerCount, long[] winnerUserIds, int unclaimedPrizeCount) A Telegram Premium giveaway with public winners has been completed for the chat. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class dev.voroby.springframework.telegram.client.TdApi.Object
toString
-
Field Details
-
boostedChatId
public long boostedChatIdIdentifier of the channel chat, which was automatically boosted by the winners of the giveaway for duration of the Premium subscription. -
giveawayMessageId
public long giveawayMessageIdIdentifier of the message with the giveaway in the boosted chat. -
additionalChatCount
public int additionalChatCountNumber of other chats that participated in the giveaway. -
actualWinnersSelectionDate
public int actualWinnersSelectionDatePoint in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway. -
onlyNewMembers
public boolean onlyNewMembersTrue, if only new members of the chats were eligible for the giveaway. -
wasRefunded
public boolean wasRefundedTrue, if the giveaway was canceled and was fully refunded. -
monthCount
public int monthCountNumber of months the Telegram Premium subscription will be active after code activation. -
prizeDescription
Additional description of the giveaway prize. -
winnerCount
public int winnerCountTotal number of winners in the giveaway. -
winnerUserIds
public long[] winnerUserIdsUp to 100 user identifiers of the winners of the giveaway. -
unclaimedPrizeCount
public int unclaimedPrizeCountNumber of undistributed prizes. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessagePremiumGiveawayWinners
public MessagePremiumGiveawayWinners()A Telegram Premium giveaway with public winners has been completed for the chat. -
MessagePremiumGiveawayWinners
public MessagePremiumGiveawayWinners(long boostedChatId, long giveawayMessageId, int additionalChatCount, int actualWinnersSelectionDate, boolean onlyNewMembers, boolean wasRefunded, int monthCount, String prizeDescription, int winnerCount, long[] winnerUserIds, int unclaimedPrizeCount) A Telegram Premium giveaway with public winners has been completed for the chat.- Parameters:
boostedChatId
- Identifier of the channel chat, which was automatically boosted by the winners of the giveaway for duration of the Premium subscription.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.monthCount
- Number of months the Telegram Premium subscription will be active after code activation.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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-