java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.PushMessageContent
it.tdlight.jni.TdApi.PushMessageContentPoll
- Enclosing class:
- TdApi
A message with a poll.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intbooleanTrue, if the message is a pinned message with the specified content.booleanTrue, if the poll is regular and not in quiz mode.Poll question. -
Constructor Summary
ConstructorsConstructorDescriptionA message with a poll.PushMessageContentPoll(DataInput input) A message with a poll.PushMessageContentPoll(String question, boolean isRegular, boolean isPinned) A message with a poll. -
Method Summary
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
question
Poll question. -
isRegular
public boolean isRegularTrue, if the poll is regular and not in quiz mode. -
isPinned
public boolean isPinnedTrue, if the message is a pinned message with the specified content. -
CONSTRUCTOR
public static final int CONSTRUCTOR- See Also:
-
-
Constructor Details
-
PushMessageContentPoll
public PushMessageContentPoll()A message with a poll. -
PushMessageContentPoll
A message with a poll.- Parameters:
question- String Poll question.isRegular- boolean True, if the poll is regular and not in quiz mode.isPinned- boolean True, if the message is a pinned message with the specified content.
-
PushMessageContentPoll
A message with a poll.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructorin classTdApi.Object
-
serialize
- Specified by:
serializein classTdApi.Object- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-