diff options
author | Andrea Giove <andreagiove@outlook.com> | 2016-03-30 14:13:17 +0200 |
---|---|---|
committer | Andrea Giove <andreagiove@outlook.com> | 2016-03-30 14:13:17 +0200 |
commit | b937e88dd43a7708f40af6a3c333046e3121a77a (patch) | |
tree | b24d43cd2a13ba923de495961bf9a5e613ae683a /src/TgTypeParser.cpp | |
parent | 184f0ae9b304a56e044394a96e4ccc45200840c4 (diff) |
Fixed ChosenInlineResult issue
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r-- | src/TgTypeParser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<string>("result_id"); - result->user = tryParseJson<User>(&TgTypeParser::parseJsonAndGetUser, data, "user"); + result->from = tryParseJson<User>(&TgTypeParser::parseJsonAndGetUser, data, "from"); result->query = data.get<string>("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 += '}'; |