Package org.drinkless.tdlib
Class TdApi.PushMessageContentGiveaway
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PushMessageContent
org.drinkless.tdlib.TdApi.PushMessageContentGiveaway
- Enclosing class:
- TdApi
A message with a giveaway.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.booleanTrue, if the message is a pinned message with the specified content.Prize of the giveaway; may be null for pinned message.intNumber of users which will receive giveaway prizes; 0 for pinned message. -
Constructor Summary
ConstructorsConstructorDescriptionA message with a giveaway.PushMessageContentGiveaway(int winnerCount, TdApi.GiveawayPrize prize, boolean isPinned) A message with a giveaway. -
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
-
winnerCount
public int winnerCountNumber of users which will receive giveaway prizes; 0 for pinned message. -
prize
Prize of the giveaway; may be null for pinned message. -
isPinned
public boolean isPinnedTrue, if the message is a pinned message with the specified content. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PushMessageContentGiveaway
public PushMessageContentGiveaway()A message with a giveaway. -
PushMessageContentGiveaway
A message with a giveaway.- Parameters:
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.
-
-
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
-