23 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD(json, json_field, field)
Available objects: https://core.telegram.org/bots/api#available-types.
#define OBJECT_DESERIALIZE_FIELD(json, json_field, field, default_value, optional)
Deserialize.
Describes data sent from a Web App to the bot. https://core.telegram.org/bots/api#webappdata.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string buttonText
Text of the web_app keyboard button from which the Web App was opened.
nl::json toJson() const
Serializes this object to JSON.
WebAppData(const nl::json &json)
std::string data
The data. Be aware that a bad client can send arbitrary data in this field.