public static class TdApi.PollTypeQuiz extends TdApi.PollType
TdApi.PollType.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
int |
correctOptionId
0-based identifier of the correct answer option; -1 for a yet unanswered poll.
|
TdApi.FormattedText |
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; empty for a yet unanswered poll.
|
Constructor and Description |
---|
PollTypeQuiz()
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
|
PollTypeQuiz(int correctOptionId,
TdApi.FormattedText explanation)
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public int correctOptionId
public TdApi.FormattedText explanation
public static final int CONSTRUCTOR
public PollTypeQuiz()
public PollTypeQuiz(int correctOptionId, TdApi.FormattedText explanation)
correctOptionId
- 0-based identifier of the correct answer option; -1 for a yet unanswered poll.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; empty for a yet unanswered poll.public int getConstructor()
getConstructor
in class TdApi.PollType