#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>
|
| | pollOption () |
| |
| | pollOption (string const &id_, object_ptr< formattedText > &&text_, object_ptr< MessageContent > &&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 |
| |
| 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 |
| |
|
| string | id_ |
| | Unique identifier of the option in the poll; may be empty if yet unassigned.
|
| |
| object_ptr< formattedText > | text_ |
| | Option text; 1-100 characters; may contain only custom emoji entities.
|
| |
| object_ptr< MessageContent > | media_ |
| | Option media. Currently, can be only of the types messageAnimation, messageLocation, messagePhoto, messageSticker, messageVenue, or messageVideo without caption.
|
| |
| 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.
|
| |
| int32 | vote_percentage_ |
| | The percentage of votes for this option; 0-100.
|
| |
| 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.
|
| |
| 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.
|
| |
| 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.
|
| |
| int32 | addition_date_ |
| | Point in time (Unix timestamp) when the option was added; 0 if the option existed from creation of the poll.
|
| |
|
| static const std::int32_t | ID = 94416337 |
| | Identifier uniquely determining a type of the object.
|
| |
Describes one answer option of a poll.
Definition at line 52182 of file td_api.h.
◆ pollOption() [1/2]
| td::td_api::pollOption::pollOption |
( |
| ) |
|
Describes one answer option of a poll.
◆ pollOption() [2/2]
Describes one answer option of a poll.
- Parameters
-
| [in] | id_ | Unique identifier of the option in the poll; may be empty if yet unassigned. |
| [in] | text_ | Option text; 1-100 characters; may contain only custom emoji entities. |
| [in] | media_ | Option media. Currently, can be only of the types messageAnimation, messageLocation, messagePhoto, messageSticker, messageVenue, or messageVideo without caption. |
| [in] | 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. |
| [in] | vote_percentage_ | The percentage of votes for this option; 0-100. |
| [in] | recent_voter_ids_ | Identifiers of recent voters for the option, if the poll is non-anonymous and poll results are available. |
| [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. |
| [in] | author_ | Identifier of the user or chat who added the option; may be null if the option existed from creation of the poll. |
| [in] | addition_date_ | Point in time (Unix timestamp) when the option was added; 0 if the option existed from creation of the poll. |
◆ store()
| void td::td_api::pollOption::store |
( |
TlStorerToString & |
s, |
|
|
const char * |
field_name |
|
) |
| const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
| [in] | s | Storer to which object string representation will be appended. |
| [in] | field_name | Object field_name if applicable. |
Implements td::TlObject.
◆ addition_date_
| int32 td::td_api::pollOption::addition_date_ |
Point in time (Unix timestamp) when the option was added; 0 if the option existed from creation of the poll.
Definition at line 52211 of file td_api.h.
◆ author_
Identifier of the user or chat who added the option; may be null if the option existed from creation of the poll.
Definition at line 52209 of file td_api.h.
◆ ID
| const std::int32_t td::td_api::pollOption::ID = 94416337 |
|
static |
Identifier uniquely determining a type of the object.
Definition at line 52235 of file td_api.h.
◆ id_
| string td::td_api::pollOption::id_ |
Unique identifier of the option in the poll; may be empty if yet unassigned.
Definition at line 52193 of file td_api.h.
◆ is_being_chosen_
| bool td::td_api::pollOption::is_being_chosen_ |
◆ is_chosen_
| bool td::td_api::pollOption::is_chosen_ |
True, if the option was chosen by the user.
Definition at line 52205 of file td_api.h.
◆ media_
◆ recent_voter_ids_
Identifiers of recent voters for the option, if the poll is non-anonymous and poll results are available.
Definition at line 52203 of file td_api.h.
◆ text_
Option text; 1-100 characters; may contain only custom emoji entities.
Definition at line 52195 of file td_api.h.
◆ vote_percentage_
| int32 td::td_api::pollOption::vote_percentage_ |
The percentage of votes for this option; 0-100.
Definition at line 52201 of file td_api.h.
◆ voter_count_
| int32 td::td_api::pollOption::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.
Definition at line 52199 of file td_api.h.
The documentation for this class was generated from the following file:
- /home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h