39 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 an incoming inline query. When the user sends an empty query,...
nl::json toJson() const
Serializes this object to JSON.
std::string offset
Offset of the results to be returned, can be controlled by the bot.
std::string query
Text of the query (up to 256 characters)
InlineQuery(const nl::json &json)
Ptr< Location > location
Optional. Sender location, only for bots that request user location.
void fromJson(const nl::json &json)
Deserializes this object from JSON.
std::string chatType
Optional. Type of the chat, from which the inline query was sent. Can be either “sender” for a privat...
std::string id
Unique identifier for this query.