24 nl::json json = nl::json::object();
#define OBJECT_SERIALIZE_FIELD_PTR(json, json_field, field)
#define OBJECT_DESERIALIZE_FIELD_PTR(json, json_field, field, optional)
#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.
Represents a location to which a chat is connected. https://core.telegram.org/bots/api#chatlocation.
ChatLocation(const nl::json &json)
Ptr< Location > location
The location to which the supergroup is connected. Can't be a live location.
nl::json toJson() const
Serializes this object to JSON.
std::string address
Location address; 1-64 characters, as defined by the chat owner.
void fromJson(const nl::json &json)
Deserializes this object from JSON.