Package org.drinkless.tdlib
Class TdApi.PollTypeQuiz
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.PollType
org.drinkless.tdlib.TdApi.PollTypeQuiz
- Enclosing class:
TdApi
A poll in quiz mode, which has predefined correct answers.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.drinkless.tdlib.TdApi.PollType
TdApi.PollType.Constructors -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.int[]Increasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll.Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll.Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll is unanswered yet. -
Constructor Summary
ConstructorsConstructorDescriptionA poll in quiz mode, which has predefined correct answers.PollTypeQuiz(int[] correctOptionIds, TdApi.FormattedText explanation, TdApi.MessageContent explanationMedia) A poll in quiz mode, which has predefined correct answers. -
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
-
correctOptionIds
public int[] correctOptionIdsIncreasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll. -
explanation
Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll. -
explanationMedia
Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll is unanswered yet. If present, currently, can be only of the types messageAnimation, messageAudio, messageDocument, messageLocation, messagePhoto, messageVenue, or messageVideo without caption. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
PollTypeQuiz
public PollTypeQuiz()A poll in quiz mode, which has predefined correct answers. -
PollTypeQuiz
public PollTypeQuiz(int[] correctOptionIds, TdApi.FormattedText explanation, TdApi.MessageContent explanationMedia) A poll in quiz mode, which has predefined correct answers.- Parameters:
correctOptionIds- Increasing list of 0-based identifiers of the correct answer options; empty for a yet unanswered poll.explanation- Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; empty for a yet unanswered poll.explanationMedia- Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; may be null if none or the poll is unanswered yet. If present, currently, can be only of the types messageAnimation, messageAudio, messageDocument, messageLocation, messagePhoto, messageVenue, or messageVideo without caption.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.PollType- Returns:
- this.CONSTRUCTOR
-