Package org.drinkless.tdlib
Class TdApi.MessageGiveawayCompleted
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.MessageContent
org.drinkless.tdlib.TdApi.MessageGiveawayCompleted
- Enclosing class:
- TdApi
A giveaway without public winners has been completed for the chat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.longIdentifier of the message with the giveaway; can be 0 if the message was deleted.booleanTrue, if the giveaway is a Telegram Star giveaway.intNumber of undistributed prizes; for Telegram Premium giveaways only.intNumber of winners in the giveaway. -
Constructor Summary
ConstructorsConstructorDescriptionA giveaway without public winners has been completed for the chat.MessageGiveawayCompleted(long giveawayMessageId, int winnerCount, boolean isStarGiveaway, int unclaimedPrizeCount) A giveaway without public winners has been completed for the chat. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
giveawayMessageId
public long giveawayMessageIdIdentifier of the message with the giveaway; can be 0 if the message was deleted. -
winnerCount
public int winnerCountNumber of winners in the giveaway. -
isStarGiveaway
public boolean isStarGiveawayTrue, if the giveaway is a Telegram Star giveaway. -
unclaimedPrizeCount
public int unclaimedPrizeCountNumber of undistributed prizes; for Telegram Premium giveaways only. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
MessageGiveawayCompleted
public MessageGiveawayCompleted()A giveaway without public winners has been completed for the chat. -
MessageGiveawayCompleted
public MessageGiveawayCompleted(long giveawayMessageId, int winnerCount, boolean isStarGiveaway, int unclaimedPrizeCount) A giveaway without public winners has been completed for the chat.- Parameters:
giveawayMessageId- Identifier of the message with the giveaway; can be 0 if the message was deleted.winnerCount- Number of winners in the giveaway.isStarGiveaway- True, if the giveaway is a Telegram Star giveaway.unclaimedPrizeCount- Number of undistributed prizes; for Telegram Premium giveaways only.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-