10 explicit Venue(
const nl::json& json) {
40 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 a venue. https://core.telegram.org/bots/api#venue.
Venue(const nl::json &json)
Ptr< Location > location
Venue location. Can't be a live location.
std::string foursquareType
Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”,...
std::string title
Name of the venue.
std::string foursquareId
Optional. Foursquare identifier of the venue.
std::string googlePlaceId
Optional. Google Places identifier of the venue.
std::string googlePlaceType
Optional. Google Places type of the venue. (See supported types.) https://developers....
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string address
Address of the venue.
nl::json toJson() const
Serializes this object to JSON.