34 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 result of an inline query that was chosen by the user and sent to their chat partner....
Ptr< Location > location
Optional. Sender location, only for bots that require user location.
ChosenInlineResult(const nl::json &json)
std::string resultId
The unique identifier for the result that was chosen.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
ChosenInlineResult()=default
std::string inlineMessageId
Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attach...
nl::json toJson() const
Serializes this object to JSON.
Ptr< User > from
The user that chose the result.
std::string query
The query that was used to obtain the result.