From fd2a6ae6f5a101855bf2b7983472e3475278c608 Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Mon, 28 May 2018 03:50:19 +0900 Subject: Fix build error (could not convert) --- src/TgTypeParser.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp index fcb7e0e..f910761 100644 --- a/src/TgTypeParser.cpp +++ b/src/TgTypeParser.cpp @@ -549,12 +549,8 @@ string TgTypeParser::parseInputMedia(const InputMedia::Ptr& object) const { appendToJson(result, "type", "video"); } appendToJson(result, "media", object->media); - if (object->caption) { - appendToJson(result, "caption", object->caption); - } - if (object->parseMode) { - appendToJson(result, "parse_mode", object->parseMode); - } + appendToJson(result, "caption", object->caption); + appendToJson(result, "parse_mode", object->parseMode); if (object->width) { appendToJson(result, "width", object->width); } -- cgit v1.2.3