summaryrefslogtreecommitdiff
path: root/src/TgTypeParser.cpp
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-05-28 03:50:19 +0900
committerJellyBrick <shlee1503@naver.com>2018-05-28 03:50:19 +0900
commitfd2a6ae6f5a101855bf2b7983472e3475278c608 (patch)
tree5d60a94e485ec3d1cbe2b3e7e6264fd7580631ca /src/TgTypeParser.cpp
parent981737b20b0db4914c667195b6584d14e9473e3d (diff)
Fix build error (could not convert)
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r--src/TgTypeParser.cpp8
1 files changed, 2 insertions, 6 deletions
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);
}