|
TDLib
|
Inherits MessageContent.
A message with a poll.
Public Member Functions | |
| messagePoll () | |
| messagePoll (object_ptr< poll > &&poll_, object_ptr< formattedText > &&description_, object_ptr< PollMedia > &&media_, bool can_add_option_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
| Public Member Functions inherited from TlObject | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject (TlObject &&)=default | |
| virtual | ~TlObject ()=default |
Public Attributes | |
| bool | can_add_option_ |
| True, if an option can be added to the poll using addPollOption. | |
| object_ptr< formattedText > | description_ |
| Description of the poll. | |
| object_ptr< PollMedia > | media_ |
| Media attached to the poll; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo. | |
| object_ptr< poll > | poll_ |
| Information about the poll. | |
Static Public Attributes | |
| static const std::int32_t | ID = 868419197 |
| Identifier uniquely determining a type of the object. | |
| messagePoll | ( | ) |
A message with a poll.
| messagePoll | ( | object_ptr< poll > && | poll_, |
| object_ptr< formattedText > && | description_, | ||
| object_ptr< PollMedia > && | media_, | ||
| bool | can_add_option_ ) |
A message with a poll.
| [in] | poll_ | Information about the poll. |
| [in] | description_ | Description of the poll. |
| [in] | media_ | Media attached to the poll; may be null if none. If present, currently, can be only of the types pollMediaAnimation, pollMediaAudio, pollMediaDocument, pollMediaLocation, pollMediaPhoto, pollMediaVenue, or pollMediaVideo. |
| [in] | can_add_option_ | True, if an option can be added to the poll using addPollOption. |
|
finalvirtual |