diff options
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 += '}'; |