31 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 contains information about an incoming shipping query. https://core.telegram....
ShippingQuery(const nl::json &json)
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string id
Unique query identifier.
Ptr< User > from
User who sent the query.
std::string invoicePayload
Bot specified invoice payload.
nl::json toJson() const
Serializes this object to JSON.
Ptr< ShippingAddress > shippingAddress
User specified shipping address.