diff options
author | JellyBrick <shlee1503@naver.com> | 2018-07-27 18:08:10 +0900 |
---|---|---|
committer | JellyBrick <shlee1503@naver.com> | 2018-07-27 18:08:10 +0900 |
commit | 85104c6a24a28d5a5eca05de4a5e59dd0059232d (patch) | |
tree | 806641a9269142761005178ea62fa946923e92c6 /src/TgTypeParser.cpp | |
parent | d4ebf6dc65bc97cab3aa147a8bfe398338c618da (diff) |
Bot API 4.0 - Part 3
Diffstat (limited to 'src/TgTypeParser.cpp')
-rw-r--r-- | src/TgTypeParser.cpp | 3 |
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); } |