From c912fac6016ec582ac3bfeec642a9b758562c994 Mon Sep 17 00:00:00 2001 From: Konstantin Kukin Date: Tue, 27 Dec 2016 15:17:11 +0300 Subject: upgrade existing inline type and create new --- src/TgTypeParser.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/TgTypeParser.cpp') 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("id"); result->title = data.get("title", ""); - result->messageText = data.get("message_text", ""); - result->parseMode = data.get("parse_mode", ""); - result->disableWebPagePreview = data.get("disable_web_page_preview", false); - result->thumbUrl = data.get("thumb_url", ""); + //result->messageText = data.get("message_text", ""); + //result->parseMode = data.get("parse_mode", ""); + //result->disableWebPagePreview = data.get("disable_web_page_preview", false); + //result->thumbUrl = data.get("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(object)); -- cgit v1.2.3