26 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.
This object represents a service message about a user allowing a bot to write messages after adding i...
void fromJson(const nl::json &json)
Deserializes this object from JSON.
WriteAccessAllowed(const nl::json &json)
bool fromRequest
Optional. True, if the access was granted after the user accepted an explicit request from a Web App ...
bool fromAttachmentMenu
Optional. True, if the access was granted when the bot was added to the attachment or side menu.
WriteAccessAllowed()=default
std::string webAppName
Optional. Name of the Web App, if the access was granted when the Web App was launched from a link.
nl::json toJson() const
Serializes this object to JSON.