From 95f86f4ce18e65d45894d5a130c4bdaf8ecbaac5 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Wed, 4 Jul 2018 19:11:03 +0300 Subject: Implement CurlHttpClient. --- include/tgbot/Api.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/tgbot/Api.h') diff --git a/include/tgbot/Api.h b/include/tgbot/Api.h index 8dea56a..e73fbe1 100644 --- a/include/tgbot/Api.h +++ b/include/tgbot/Api.h @@ -28,6 +28,7 @@ #include +#include "tgbot/net/HttpClient.h" #include "tgbot/net/HttpReqArg.h" #include "tgbot/types/User.h" #include "tgbot/types/Message.h" @@ -62,7 +63,7 @@ typedef std::shared_ptr> StringArrayPtr; friend class Bot; public: - Api(const std::string& token); + Api(const std::string& token, const HttpClient &httpClientDriver); /** * @brief A simple method for testing your bot's auth token. @@ -890,6 +891,7 @@ private: boost::property_tree::ptree sendRequest(const std::string& method, const std::vector& args = std::vector()) const; const std::string _token; + const HttpClient &_httpClientDriver; }; } -- cgit v1.2.3