Package org.drinkless.tdlib
Class TdApi.PushMessageContentPoll
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.PushMessageContent
-
- org.drinkless.tdlib.TdApi.PushMessageContentPoll
-
- Enclosing class:
- TdApi
public static class TdApi.PushMessageContentPoll extends TdApi.PushMessageContent
A message with a poll.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.booleanisPinnedTrue, if the message is a pinned message with the specified content.booleanisRegularTrue, if the poll is regular and not in quiz mode.StringquestionPoll question.
-
Constructor Summary
Constructors Constructor Description PushMessageContentPoll()A message with a poll.PushMessageContentPoll(String question, boolean isRegular, boolean isPinned)A message with a poll.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
-
-
-
Field Detail
-
question
public String question
Poll question.
-
isRegular
public boolean isRegular
True, if the poll is regular and not in quiz mode.
-
isPinned
public boolean isPinned
True, if the message is a pinned message with the specified content.
-
CONSTRUCTOR
public static final int CONSTRUCTOR
Identifier uniquely determining type of the object.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PushMessageContentPoll
public PushMessageContentPoll()
A message with a poll.
-
PushMessageContentPoll
public PushMessageContentPoll(String question, boolean isRegular, boolean isPinned)
A message with a poll.- Parameters:
question- Poll question.isRegular- True, if the poll is regular and not in quiz mode.isPinned- True, if the message is a pinned message with the specified content.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-