|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
This object contains information about one answer option in a poll. https://core.telegram.org/bots/api#polloption. More...
#include <PollOption.hpp>
Public Member Functions | |
| PollOption ()=default | |
| PollOption (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::vector< Ptr< MessageEntity > > | textEntities |
| Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts. | |
| std::int32_t | voterCount {} |
| Number of users that voted for this option. | |
This object contains information about one answer option in a poll. https://core.telegram.org/bots/api#polloption.
Definition at line 8 of file PollOption.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file PollOption.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 34 of file PollOption.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 25 of file PollOption.hpp.
| std::string tgbotxx::PollOption::text |
Option text, 1-100 characters.
Definition at line 15 of file PollOption.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::PollOption::textEntities |
Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts.
Definition at line 18 of file PollOption.hpp.
| std::int32_t tgbotxx::PollOption::voterCount {} |
Number of users that voted for this option.
Definition at line 21 of file PollOption.hpp.