diff options
author | JellyBrick <shlee1503@naver.com> | 2018-07-27 18:43:11 +0900 |
---|---|---|
committer | JellyBrick <shlee1503@naver.com> | 2018-07-27 18:43:11 +0900 |
commit | 6d1a96043c63f346b03df4c54d8200bc320ebe3e (patch) | |
tree | 17df84fbd12907fa3b668446eaebb5e0cd4b78d8 /src | |
parent | e6c475bd21df4dfd083d09ff0074758aec340e89 (diff) |
Fix 'default argument missing'
Diffstat (limited to 'src')
-rw-r--r-- | src/Api.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Api.cpp b/src/Api.cpp index ff0b31b..6b41947 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -517,7 +517,7 @@ Message::Ptr Api::sendVoice(int64_t chatId, const boost::variant<InputFile::Ptr, args.reserve(8); args.emplace_back("chat_id", chatId); if (voice.which() == 0 /* InputFile::Ptr */) { - auto file = boost::get<InputFile::Ptr>(video); + auto file = boost::get<InputFile::Ptr>(voice); args.emplace_back("voice", file->data, true, file->mimeType, file->fileName); } else /* std::string */ { args.emplace_back("voice", boost::get<std::string>(voice)); |