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 | |
parent | e6c475bd21df4dfd083d09ff0074758aec340e89 (diff) |
Fix 'default argument missing'
-rw-r--r-- | include/tgbot/Api.h | 2 | ||||
-rw-r--r-- | src/Api.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 0966b29..84a6c9b 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -312,7 +312,7 @@ public: * @param disableNotification Optional. Sends the message silenty. * @return On success, the sent Message is returned. */ - Message::Ptr sendAnimation(int64_t chatId, const boost::variant<InputFile::Ptr, std::string> animation, int32_t duration = 0, int32_t width = 0, int32_t height = 0, const boost::variant<InputFile::Ptr, std::string> thumb, const std::string &caption = "", + Message::Ptr sendAnimation(int64_t chatId, const boost::variant<InputFile::Ptr, std::string> animation, int32_t duration = 0, int32_t width = 0, int32_t height = 0, const boost::variant<InputFile::Ptr, std::string> thumb = "", const std::string &caption = "", int32_t replyToMessageId = 0, GenericReply::Ptr replyMarkup = std::make_shared<GenericReply>(), const std::string& parseMode = "", bool disableNotification = false) const; /** * @brief Use this method to send video messages. On success, the sent Message is returned. 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)); |