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 int
Identifier uniquely determining type of the object.boolean
True, if the message is a pinned message with the specified content.Prize of the giveaway; may be null for pinned message.int
Number 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 TypeMethodDescriptionint
Returns 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.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-