tdlib-obf API
Reference documentation for the public tdlib-obf API, generated from TDLib schemas and public headers
Loading...
Searching...
No Matches
td::td_api::pollOption Class Referencefinal

#include </home/runner/work/tdlib-obf/tdlib-obf/td/generate/auto/td/telegram/td_api.h>

Inheritance diagram for td::td_api::pollOption:
td::td_api::Object td::TlObject

Public Member Functions

 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
 
- Public Member Functions inherited from td::TlObject
virtual void store (TlStorerUnsafe &s) const
 
virtual void store (TlStorerCalcLength &s) const
 
 TlObject ()=default
 
 TlObject (const TlObject &)=delete
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Public Attributes

string id_
 Unique identifier of the option in the poll; may be empty if yet unassigned.
 
object_ptr< formattedTexttext_
 Option text; 1-100 characters; may contain only custom emoji entities.
 
object_ptr< MessageContentmedia_
 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< MessageSenderauthor_
 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 Public Attributes

static const std::int32_t ID = 94416337
 Identifier uniquely determining a type of the object.
 

Detailed Description

Describes one answer option of a poll.

Definition at line 52182 of file td_api.h.

Constructor & Destructor Documentation

◆ pollOption() [1/2]

td::td_api::pollOption::pollOption ( )

Describes one answer option of a poll.

◆ pollOption() [2/2]

td::td_api::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_ 
)

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.

Member Function Documentation

◆ 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]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements td::TlObject.

Member Data Documentation

◆ 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_

object_ptr<MessageSender> td::td_api::pollOption::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_

True, if the option is being chosen by a pending setPollAnswer request.

Definition at line 52207 of file td_api.h.

◆ 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_

object_ptr<MessageContent> td::td_api::pollOption::media_

Option media. Currently, can be only of the types messageAnimation, messageLocation, messagePhoto, messageSticker, messageVenue, or messageVideo without caption.

Definition at line 52197 of file td_api.h.

◆ recent_voter_ids_

array<object_ptr<MessageSender> > td::td_api::pollOption::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_

object_ptr<formattedText> td::td_api::pollOption::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: