summaryrefslogtreecommitdiff
path: root/src/TgTypeParser.cpp
diff options
context:
space:
mode:
authorJellyBrick <shlee1503@naver.com>2018-07-27 18:08:10 +0900
committerJellyBrick <shlee1503@naver.com>2018-07-27 18:08:10 +0900
commit85104c6a24a28d5a5eca05de4a5e59dd0059232d (patch)
tree806641a9269142761005178ea62fa946923e92c6 /src/TgTypeParser.cpp
parentd4ebf6dc65bc97cab3aa147a8bfe398338c618da (diff)
Bot API 4.0 - Part 3
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r--src/TgTypeParser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/TgTypeParser.cpp b/src/TgTypeParser.cpp
index 1bbc38e..ad200b3 100644
--- a/src/TgTypeParser.cpp
+++ b/src/TgTypeParser.cpp
@@ -693,11 +693,10 @@ string TgTypeParser::parseInputMedia(const InputMedia::Ptr& object) const {
case InputMedia::TYPE::AUDIO:
appendToJson(result, "type", "audio");
break;
- }
+ }
appendToJson(result, "media", object->media);
appendToJson(result, "caption", object->caption);
appendToJson(result, "parse_mode", object->parseMode);
- args.emplace_back("thumb", boost::get<std::string>(object->thumb));
if (object->width) {
appendToJson(result, "width", object->width);
}