From 3549754e53f79e9ba0b00fb0bbded5d56a14ef51 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Tue, 24 Jan 2017 16:11:17 +0300 Subject: Return empty GenericReply in parseJsonAndGetGenericReply. Fixes #35 --- src/TgTypeParser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/TgTypeParser.cpp') diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index b52533b..5fa19dd 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -588,6 +588,7 @@ GenericReply::Ptr TgTypeParser::parseJsonAndGetGenericReply(const boost::propert } else if (data.find("inline_keyboard") != data.not_found()) { return static_pointer_cast(parseJsonAndGetInlineKeyboardMarkup(data)); } + return GenericReply::Ptr(new GenericReply); } std::string TgTypeParser::parseGenericReply(const GenericReply::Ptr& object) const { -- cgit v1.2.3