Inherits InputMessageContent.
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.
Public Fields | |
object_ptr< formattedText > | question_ |
Poll question; 1-255 characters (up to 300 characters for bots). Only custom emoji entities are allowed to be added and only by Premium users. | |
array< object_ptr< formattedText > > | options_ |
List of poll answer options, 2-10 strings 1-100 characters each. Only custom emoji entities are allowed to be added and only by Premium users. | |
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. | |
Public Instance Methods | |
inputMessagePoll () | |
inputMessagePoll (object_ptr< formattedText > &&question_, array< object_ptr< formattedText >> &&options_, 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 | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -263337164 |
Identifier uniquely determining a type of the object. | |
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.
inputMessagePoll | ( | object_ptr< formattedText > && | question_, |
array< object_ptr< formattedText >> && | 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). Only custom emoji entities are allowed to be added and only by Premium users. |
[in] | options_ | List of poll answer options, 2-10 strings 1-100 characters each. Only custom emoji entities are allowed to be added and only by Premium users. |
[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. |
|
finalvirtual |