Package org.drinkless.tdlib
Class TdApi.InputPollTypeQuiz
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.InputPollType
org.drinkless.tdlib.TdApi.InputPollTypeQuiz
- Enclosing class:
- TdApi
A poll in quiz mode, which has predefined correct answers.
-
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; must be non-empty.Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds.Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; pass null if none. -
Constructor Summary
ConstructorsConstructorDescriptionA poll in quiz mode, which has predefined correct answers.InputPollTypeQuiz(int[] correctOptionIds, TdApi.FormattedText explanation, TdApi.InputPollMedia 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; must be non-empty. -
explanation
Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds. -
explanationMedia
Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; pass null if none. Must be one of the following types: inputPollMediaAnimation, inputPollMediaAudio, inputPollMediaDocument, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaVenue, or inputPollMediaVideo without caption. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
InputPollTypeQuiz
public InputPollTypeQuiz()A poll in quiz mode, which has predefined correct answers. -
InputPollTypeQuiz
public InputPollTypeQuiz(int[] correctOptionIds, TdApi.FormattedText explanation, TdApi.InputPollMedia explanationMedia) A poll in quiz mode, which has predefined correct answers.- Parameters:
correctOptionIds- Increasing list of 0-based identifiers of the correct answer options; must be non-empty.explanation- Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds.explanationMedia- Media that is shown when the user chooses an incorrect answer or taps on the lamp icon; pass null if none. Must be one of the following types: inputPollMediaAnimation, inputPollMediaAudio, inputPollMediaDocument, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaVenue, or inputPollMediaVideo 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.Object- Returns:
- this.CONSTRUCTOR
-