Inherits Object.
Describes one answer option of a poll.
Public Fields | |
| object_ptr< formattedText > | text_ |
| Option text; 1-100 characters. Only custom emoji entities are allowed. | |
| int32 | voter_count_ |
| Number of voters for this option, available only for closed or voted polls. | |
| int32 | vote_percentage_ |
| The percentage of votes for this option; 0-100. | |
| bool | is_chosen_ |
| True, if the option was chosen by the user. | |
| bool | is_being_chosen_ |
| True, if the option is being chosen by a pending setPollAnswer request. | |
Public Instance Methods | |
| pollOption () | |
| pollOption (object_ptr< formattedText > &&text_, int32 voter_count_, int32 vote_percentage_, bool is_chosen_, bool is_being_chosen_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| 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 = 1676243088 |
| Identifier uniquely determining a type of the object. | |
| pollOption | ( | ) |
Describes one answer option of a poll.
| pollOption | ( | object_ptr< formattedText > && | text_, |
| int32 | voter_count_, | ||
| int32 | vote_percentage_, | ||
| bool | is_chosen_, | ||
| bool | is_being_chosen_ | ||
| ) |
Describes one answer option of a poll.
| [in] | text_ | Option text; 1-100 characters. Only custom emoji entities are allowed. |
| [in] | voter_count_ | Number of voters for this option, available only for closed or voted polls. |
| [in] | vote_percentage_ | The percentage of votes for this option; 0-100. |
| [in] | is_chosen_ | True, if the option was chosen by the user. |
| [in] | is_being_chosen_ | True, if the option is being chosen by a pending setPollAnswer request. |
|
finalvirtual |