diff options
author | Konstantin Kukin <kukin.konstantin@gmail.com> | 2016-12-27 15:17:11 +0300 |
---|---|---|
committer | Konstantin Kukin <kukin.konstantin@gmail.com> | 2016-12-27 15:17:11 +0300 |
commit | c912fac6016ec582ac3bfeec642a9b758562c994 (patch) | |
tree | 561b586a14da851ca4fa3cbd4c805eecdf432e6f /src/TgTypeParser.cpp | |
parent | 76d3a4c33a8808552b55b1bf36934b455528a150 (diff) |
upgrade existing inline type and create new
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r-- | src/TgTypeParser.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index 174afe9..6bd77a7 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -552,10 +552,10 @@ InlineQueryResult::Ptr TgTypeParser::parseJsonAndGetInlineQueryResult(const boos result->id = data.get<string>("id"); result->title = data.get<string>("title", ""); - result->messageText = data.get<string>("message_text", ""); - result->parseMode = data.get<string>("parse_mode", ""); - result->disableWebPagePreview = data.get("disable_web_page_preview", false); - result->thumbUrl = data.get<string>("thumb_url", ""); + //result->messageText = data.get<string>("message_text", ""); + //result->parseMode = data.get<string>("parse_mode", ""); + //result->disableWebPagePreview = data.get("disable_web_page_preview", false); + //result->thumbUrl = data.get<string>("thumb_url", ""); return result; } @@ -570,10 +570,10 @@ std::string TgTypeParser::parseInlineQueryResult(const InlineQueryResult::Ptr& o appendToJson(result, "id", object->id); appendToJson(result, "type", object->type); appendToJson(result, "title", object->title); - appendToJson(result, "message_text", object->messageText); - appendToJson(result, "parse_mode", object->parseMode); - appendToJson(result, "disable_web_page_preview", object->disableWebPagePreview); - appendToJson(result, "thumb_url", object->thumbUrl); + //appendToJson(result, "message_text", object->messageText); + //appendToJson(result, "parse_mode", object->parseMode); + //appendToJson(result, "disable_web_page_preview", object->disableWebPagePreview); + //appendToJson(result, "thumb_url", object->thumbUrl); if (object->type == InlineQueryResultArticle::TYPE){ result += parseInlineQueryResultArticle(static_pointer_cast<InlineQueryResultArticle>(object)); |