tgbotxx
1.1.6.9
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. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
std::string | text |
Option text, 1-100 characters. More... | |
std::int32_t | voterCount {} |
Number of users that voted for this option. More... | |
This object contains information about one answer option in a poll. https://core.telegram.org/bots/api#polloption.
Definition at line 7 of file PollOption.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file PollOption.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 29 of file PollOption.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 21 of file PollOption.hpp.
std::string tgbotxx::PollOption::text |
Option text, 1-100 characters.
Definition at line 14 of file PollOption.hpp.
std::int32_t tgbotxx::PollOption::voterCount {} |
Number of users that voted for this option.
Definition at line 17 of file PollOption.hpp.