summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
-rw-r--r--src/Api.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9acb2f0..e25e560 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,9 +29,9 @@ include_directories(${OPENSSL_INCLUDE_DIR})
# boost
set(Boost_USE_MULTITHREADED ON)
if (ENABLE_TESTS)
- find_package(Boost COMPONENTS system iostreams unit_test_framework REQUIRED)
+ find_package(Boost 1.59.0 COMPONENTS system iostreams unit_test_framework REQUIRED)
else()
- find_package(Boost COMPONENTS system iostreams REQUIRED)
+ find_package(Boost 1.59.0 COMPONENTS system iostreams REQUIRED)
endif()
include_directories(${Boost_INCLUDE_DIR})
diff --git a/src/Api.cpp b/src/Api.cpp
index 361b4d6..55d61c2 100644
--- a/src/Api.cpp
+++ b/src/Api.cpp
@@ -332,7 +332,7 @@ Message::Ptr Api::sendVoice(int64_t chatId, const std::string& voiceId, const st
if (disableNotification){
args.push_back(HttpReqArg("disable_notification", disableNotification));
}
- return TgTypeParser::getInstance().parseJsonAndGetMessage(sendRequest("sendVideo", args));
+ return TgTypeParser::getInstance().parseJsonAndGetMessage(sendRequest("sendVoice", args));
}
Message::Ptr Api::sendLocation(int64_t chatId, float latitude, float longitude, int32_t replyToMessageId, const GenericReply::Ptr& replyMarkup, bool disableNotification) const {