|
TDLib
|
Inherits Object.
Describes one answer option of a poll to be created.
Public Member Functions | |
| inputPollOption () | |
| inputPollOption (object_ptr< formattedText > &&text_, object_ptr< InputPollMedia > &&media_) | |
| 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 | |
| object_ptr< InputPollMedia > | media_ |
| Option media; pass null if none; ignored in addPollOption. Must be one of the following types: inputPollMediaAnimation, inputPollMediaLink, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaSticker, inputPollMediaVenue, or inputPollMediaVideo without caption. | |
| object_ptr< formattedText > | text_ |
| Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users. | |
Static Public Attributes | |
| static const std::int32_t | ID = -1181830826 |
| Identifier uniquely determining a type of the object. | |
| inputPollOption | ( | ) |
Describes one answer option of a poll to be created.
| inputPollOption | ( | object_ptr< formattedText > && | text_, |
| object_ptr< InputPollMedia > && | media_ ) |
Describes one answer option of a poll to be created.
| [in] | text_ | Option text; 1-100 characters. Only custom emoji entities are allowed to be added and only by Premium users. |
| [in] | media_ | Option media; pass null if none; ignored in addPollOption. Must be one of the following types: inputPollMediaAnimation, inputPollMediaLink, inputPollMediaLocation, inputPollMediaPhoto, inputPollMediaSticker, inputPollMediaVenue, or inputPollMediaVideo without caption. |
|
finalvirtual |