List of all members | Public Fields | Public Instance Methods | Static Public Attributes
poll Class Referencefinal

Inherits Object.

Description

Describes a poll.

Public Fields

int64 id_
 Unique poll identifier.
 
object_ptr< formattedTextquestion_
 Poll question; 1-300 characters. Only custom emoji entities are allowed.
 
array< object_ptr< pollOption > > options_
 List of poll answer options.
 
int32 total_voter_count_
 Total number of voters, participating in the poll.
 
array< object_ptr< MessageSender > > recent_voter_ids_
 Identifiers of recent voters, if the poll is non-anonymous.
 
bool is_anonymous_
 True, if the poll is anonymous.
 
object_ptr< PollTypetype_
 Type of the poll.
 
int32 open_period_
 Amount of time the poll will be active after creation, in seconds.
 
int32 close_date_
 Point in time (Unix timestamp) when the poll will automatically be closed.
 
bool is_closed_
 True, if the poll is closed.
 

Public Instance Methods

 poll ()
 
 poll (int64 id_, object_ptr< formattedText > &&question_, array< object_ptr< pollOption >> &&options_, int32 total_voter_count_, array< object_ptr< MessageSender >> &&recent_voter_ids_, bool is_anonymous_, object_ptr< PollType > &&type_, int32 open_period_, int32 close_date_, bool is_closed_)
 
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
 
TlObjectoperator= (const TlObject &)=delete
 
 TlObject (TlObject &&)=default
 
TlObjectoperator= (TlObject &&)=default
 
virtual ~TlObject ()=default
 

Static Public Attributes

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

Constructor & Destructor Documentation

◆ poll() [1/2]

poll ( )

Describes a poll.

◆ poll() [2/2]

poll ( int64  id_,
object_ptr< formattedText > &&  question_,
array< object_ptr< pollOption >> &&  options_,
int32  total_voter_count_,
array< object_ptr< MessageSender >> &&  recent_voter_ids_,
bool  is_anonymous_,
object_ptr< PollType > &&  type_,
int32  open_period_,
int32  close_date_,
bool  is_closed_ 
)

Describes a poll.

Parameters
[in]id_Unique poll identifier.
[in]question_Poll question; 1-300 characters. Only custom emoji entities are allowed.
[in]options_List of poll answer options.
[in]total_voter_count_Total number of voters, participating in the poll.
[in]recent_voter_ids_Identifiers of recent voters, if the poll is non-anonymous.
[in]is_anonymous_True, if the poll is anonymous.
[in]type_Type of the poll.
[in]open_period_Amount of time the poll will be active after creation, in seconds.
[in]close_date_Point in time (Unix timestamp) when the poll will automatically be closed.
[in]is_closed_True, if the poll is closed.

Method Documentation

◆ store()

void 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 TlObject.


The documentation for this class was generated from the following file: