summaryrefslogtreecommitdiff
path: root/src/TgTypeParser.cpp
diff options
context:
space:
mode:
authorOleg Morozenkov <reo7sp@users.noreply.github.com>2017-01-24 16:11:17 +0300
committerOleg Morozenkov <reo7sp@users.noreply.github.com>2017-01-24 16:11:17 +0300
commit3549754e53f79e9ba0b00fb0bbded5d56a14ef51 (patch)
tree63b2601d4adec6025713c68def4c1b92c149fe89 /src/TgTypeParser.cpp
parent989c691916d17c4819c75132dbbe36de1131c467 (diff)
Return empty GenericReply in parseJsonAndGetGenericReply. Fixes #35
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r--src/TgTypeParser.cpp1
1 files changed, 1 insertions, 0 deletions
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<GenericReply>(parseJsonAndGetInlineKeyboardMarkup(data));
}
+ return GenericReply::Ptr(new GenericReply);
}
std::string TgTypeParser::parseGenericReply(const GenericReply::Ptr& object) const {