Describes one answer option of a poll.
|
| | pollOption () |
| | pollOption (string const &id_, object_ptr< formattedText > &&text_, object_ptr< PollMedia > &&media_, int32 voter_count_, int32 vote_percentage_, array< object_ptr< MessageSender > > &&recent_voter_ids_, bool is_chosen_, bool is_being_chosen_, object_ptr< MessageSender > &&author_, int32 addition_date_) |
| void | store (TlStorerToString &s, const char *field_name) const final |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| | TlObject ()=default |
| | TlObject (const TlObject &)=delete |
| | TlObject (TlObject &&)=default |
| virtual | ~TlObject ()=default |
|
|
int32 | addition_date_ |
| | Point in time (Unix timestamp) when the option was added; 0 if the option existed from creation of the poll.
|
|
object_ptr< MessageSender > | author_ |
| | Identifier of the user or chat who added the option; may be null if the option existed from creation of the poll.
|
|
string | id_ |
| | Unique identifier of the option in the poll; may be empty if yet unassigned.
|
|
bool | is_being_chosen_ |
| | True, if the option is being chosen by a pending setPollAnswer request.
|
|
bool | is_chosen_ |
| | True, if the option was chosen by the user.
|
|
object_ptr< PollMedia > | media_ |
| | Option media; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaLink, pollMediaLocation, pollMediaPhoto, pollMediaSticker, pollMediaVenue, or pollMediaVideo.
|
|
array< object_ptr< MessageSender > > | recent_voter_ids_ |
| | Identifiers of recent voters for the option, if the poll is non-anonymous and poll results are available.
|
|
object_ptr< formattedText > | text_ |
| | Option text; 1-100 characters; may contain only custom emoji entities.
|
|
int32 | vote_percentage_ |
| | The percentage of votes for this option; 0-100.
|
|
int32 | voter_count_ |
| | Number of voters for this option, available only for closed or voted polls, or if the current user is the creator of the poll.
|