From 798a7a60287012338b1b42b88e4c8d3fdc3c2eb0 Mon Sep 17 00:00:00 2001 From: asapelkin Date: Mon, 16 Jan 2017 10:45:44 +0400 Subject: Specified minimum version of Boost. Specified minimum version of Boost (boost::property_tree::read_json don't work with cyrillic correctly in Boost lower 1.59) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 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}) -- cgit v1.2.3 From 54525fb9e5cf0e84389f61be2a1de1f6bfc01716 Mon Sep 17 00:00:00 2001 From: asapelkin Date: Mon, 16 Jan 2017 14:19:19 +0400 Subject: Little typo Little typo fixed. "sendVideo" instead "sendVoice". --- src/Api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3