TDLib
|
Inherits td::td_api::InputMessageContent.
Public Member Functions | |
inputMessagePoll () | |
inputMessagePoll (string const &question_, array< string > &&options_, bool is_anonymous_, object_ptr< PollType > &&type_, int32 open_period_, int32 close_date_, bool is_closed_) | |
std::int32_t | get_id () const final |
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 | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Public Attributes | |
string | question_ |
Poll question; 1-255 characters (up to 300 characters for bots). | |
array< string > | options_ |
List of poll answer options, 2-10 strings 1-100 characters each. | |
bool | is_anonymous_ |
True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels. | |
object_ptr< PollType > | type_ |
Type of the poll. | |
int32 | open_period_ |
Amount of time the poll will be active after creation, in seconds; for bots only. | |
int32 | close_date_ |
Point in time (Unix timestamp) when the poll will automatically be closed; for bots only. | |
bool | is_closed_ |
True, if the poll needs to be sent already closed; for bots only. | |
Static Public Attributes | |
static const std::int32_t | ID = 2054629900 |
Identifier uniquely determining a type of the object. | |
A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot.
td::td_api::inputMessagePoll::inputMessagePoll | ( | ) |
A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot.
td::td_api::inputMessagePoll::inputMessagePoll | ( | string const & | question_, |
array< string > && | options_, | ||
bool | is_anonymous_, | ||
object_ptr< PollType > && | type_, | ||
int32 | open_period_, | ||
int32 | close_date_, | ||
bool | is_closed_ | ||
) |
A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot.
[in] | question_ | Poll question; 1-255 characters (up to 300 characters for bots). |
[in] | options_ | List of poll answer options, 2-10 strings 1-100 characters each. |
[in] | is_anonymous_ | True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels. |
[in] | type_ | Type of the poll. |
[in] | open_period_ | Amount of time the poll will be active after creation, in seconds; for bots only. |
[in] | close_date_ | Point in time (Unix timestamp) when the poll will automatically be closed; for bots only. |
[in] | is_closed_ | True, if the poll needs to be sent already closed; for bots only. |
|
inlinefinalvirtual |
Returns identifier uniquely determining a type of the object.
Implements td::TlObject.
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements td::TlObject.