|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object contains information about one answer option in a poll to be sent. https://core.telegram.org/bots/api#inputpolloption. More...
#include <InputPollOption.hpp>
Public Member Functions | |
| InputPollOption ()=default | |
| InputPollOption (const nl::json &json) | |
| nl::json | toJson () const |
| Serializes this object to JSON. | |
| void | fromJson (const nl::json &json) |
| Deserializes this object from JSON. | |
Public Attributes | |
| std::string | text |
| Option text, 1-100 characters. | |
| std::string | textParseMode |
| Optional. Mode for parsing entities in the text. Currently, only custom emoji entities are allowed. | |
| std::vector< Ptr< MessageEntity > > | textEntities |
| Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode. | |
This object contains information about one answer option in a poll to be sent. https://core.telegram.org/bots/api#inputpolloption.
Definition at line 8 of file InputPollOption.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file InputPollOption.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 35 of file InputPollOption.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 26 of file InputPollOption.hpp.
| std::string tgbotxx::InputPollOption::text |
Option text, 1-100 characters.
Definition at line 15 of file InputPollOption.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::InputPollOption::textEntities |
Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode.
Definition at line 22 of file InputPollOption.hpp.
| std::string tgbotxx::InputPollOption::textParseMode |
Optional. Mode for parsing entities in the text. Currently, only custom emoji entities are allowed.
Definition at line 18 of file InputPollOption.hpp.