38 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 point on the map. https://core.telegram.org/bots/api#location.
std::int32_t livePeriod
Optional. Time relative to the message sending date, during which the location can be updated,...
std::int32_t heading
Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.
float horizontalAccuracy
Optional. The radius of uncertainty for the location, measured in meters; 0-1500.
Location(const nl::json &json)
float latitude
Latitude as defined by sender.
std::int32_t proximityAlertRadius
Optional. Maximum distance for proximity alerts about approaching another chat member,...
void fromJson(const nl::json &json)
Deserializes this object from JSON.
nl::json toJson() const
Serializes this object to JSON.
float longitude
Longitude as defined by sender.