public static class TdApi.PollTypeQuiz extends TdApi.PollType
| 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()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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()
TdApi.ObjectgetConstructor in class TdApi.Object