summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Morozenkov <reo7sp@users.noreply.github.com>2017-01-16 20:24:53 +0300
committerGitHub <noreply@github.com>2017-01-16 20:24:53 +0300
commita93d6349d5ae762032366f2e6f5f9831de437ebf (patch)
tree34e55855225290e7d6e0f86aab6c563eea1f1f5d
parentd03eda27cdbe75470068d7513ecf510d8d342cf5 (diff)
parent54525fb9e5cf0e84389f61be2a1de1f6bfc01716 (diff)
Merge pull request #33 from asapelkin/master
Specified minimum version of Boost.
-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 {