27 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.
This object represents the content of a service message, sent whenever a user in the chat triggers a ...
Ptr< User > traveler
User that triggered the alert.
Ptr< User > watcher
User that set the alert.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
nl::json toJson() const
Serializes this object to JSON.
ProximityAlertTriggered(const nl::json &json)
ProximityAlertTriggered()=default
std::int32_t distance
The distance between the users.