Inherits PollType.
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
Public Fields | |
int32 | correct_option_id_ |
0-based identifier of the correct answer option; -1 for a yet unanswered poll. | |
object_ptr< 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. | |
Public Instance Methods | |
pollTypeQuiz () | |
pollTypeQuiz (int32 correct_option_id_, object_ptr< formattedText > &&explanation_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = 657013913 |
Identifier uniquely determining a type of the object. | |
pollTypeQuiz | ( | ) |
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
pollTypeQuiz | ( | int32 | correct_option_id_, |
object_ptr< formattedText > && | explanation_ | ||
) |
A poll in quiz mode, which has exactly one correct answer option and can be answered only once.
[in] | correct_option_id_ | 0-based identifier of the correct answer option; -1 for a yet unanswered poll. |
[in] | 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. |
|
finalvirtual |