tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
Describes data sent from a Web App to the bot. https://core.telegram.org/bots/api#webappdata. More...
#include <WebAppData.hpp>
Public Member Functions | |
WebAppData ()=default | |
WebAppData (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 | data |
The data. Be aware that a bad client can send arbitrary data in this field. More... | |
std::string | buttonText |
Text of the web_app keyboard button from which the Web App was opened. More... | |
Describes data sent from a Web App to the bot. https://core.telegram.org/bots/api#webappdata.
Definition at line 7 of file WebAppData.hpp.
|
default |
|
inlineexplicit |
Definition at line 9 of file WebAppData.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 30 of file WebAppData.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 22 of file WebAppData.hpp.
std::string tgbotxx::WebAppData::buttonText |
Text of the web_app keyboard button from which the Web App was opened.
Definition at line 18 of file WebAppData.hpp.
std::string tgbotxx::WebAppData::data |
The data. Be aware that a bad client can send arbitrary data in this field.
Definition at line 14 of file WebAppData.hpp.