From b937e88dd43a7708f40af6a3c333046e3121a77a Mon Sep 17 00:00:00 2001 From: Andrea Giove Date: Wed, 30 Mar 2016 14:13:17 +0200 Subject: Fixed ChosenInlineResult issue --- src/TgTypeParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/TgTypeParser.cpp') diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index 244496e..6672c04 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -711,7 +711,7 @@ std::string TgTypeParser::parseInlineQueryResultVideo(const InlineQueryResultVid ChosenInlineResult::Ptr TgTypeParser::parseJsonAndGetChosenInlineResult(const boost::property_tree::ptree& data) const { ChosenInlineResult::Ptr result(new ChosenInlineResult); result->resultId = data.get("result_id"); - result->user = tryParseJson(&TgTypeParser::parseJsonAndGetUser, data, "user"); + result->from = tryParseJson(&TgTypeParser::parseJsonAndGetUser, data, "from"); result->query = data.get("query"); return result; } @@ -724,7 +724,7 @@ std::string TgTypeParser::parseChosenInlineResult(const ChosenInlineResult::Ptr& string result; result += '{'; appendToJson(result, "result_id", object->resultId); - appendToJson(result, "user", parseUser(object->user)); + appendToJson(result, "from", parseUser(object->from)); appendToJson(result, "query", object->query); result.erase(result.length() - 1); result += '}'; -- cgit v1.2.3