tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed. https://core.telegram.org/bots/api#keyboardbuttonpolltype. More...
#include <KeyboardButtonPollType.hpp>
Public Member Functions | |
KeyboardButtonPollType ()=default | |
KeyboardButtonPollType (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 | type |
Optional. “quiz“ or “regular“. If “quiz“ is passed, the user will be allowed to create only polls in the quiz mode. If “regular“ is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type. More... | |
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed. https://core.telegram.org/bots/api#keyboardbuttonpolltype.
Definition at line 7 of file KeyboardButtonPollType.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file KeyboardButtonPollType.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 28 of file KeyboardButtonPollType.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 21 of file KeyboardButtonPollType.hpp.
std::string tgbotxx::KeyboardButtonPollType::type |
Optional. “quiz“ or “regular“. If “quiz“ is passed, the user will be allowed to create only polls in the quiz mode. If “regular“ is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
Definition at line 16 of file KeyboardButtonPollType.hpp.