diff options
-rw-r--r-- | src/TgTypeParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index ad200b3..6a0cef9 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -665,6 +665,7 @@ InputMedia::Ptr TgTypeParser::parseJsonAndGetInputMedia(const ptree& data) const result->duration = data.get<int32_t>("duration", 0); result->title = data.get<int32_t>("title", 0); result->performer = data.get<int32_t>("performer", 0); + return result; } else { return nullptr; |