Inherits Object.
|
| 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 |
|
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 const std::int32_t | ID = 1913016502 |
| Identifier uniquely determining a type of the object.
|
|
◆ poll() [1/2]
◆ poll() [2/2]
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. |
◆ 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] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements TlObject.
The documentation for this class was generated from the following file: