diff options
author | fadhil riyanto <me@fadev.org> | 2024-08-12 08:57:04 +0700 |
---|---|---|
committer | fadhil riyanto <me@fadev.org> | 2024-08-12 08:57:04 +0700 |
commit | 1caf922e2466de8ee23aa4a9f5cb798ab06327cc (patch) | |
tree | add3532eaaac2c0450aada5a20614a55ae7d9ddc | |
parent | 580d02327a8b4b8a0648e920da53a5b406c8a6a6 (diff) |
set cURL as default http client
Signed-off-by: fadhil riyanto <me@fadev.org>
-rw-r--r-- | src/Bot.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Bot.cpp b/src/Bot.cpp index 566f041..af36029 100644 --- a/src/Bot.cpp +++ b/src/Bot.cpp @@ -1,4 +1,5 @@ #include "tgbot/net/BoostHttpOnlySslClient.h" +#include "tgbot/net/CurlHttpClient.h" #include "tgbot/Bot.h" #include "tgbot/EventBroadcaster.h" @@ -16,7 +17,7 @@ Bot::Bot(std::string token, const std::string& url, const HttpClient& httpClient } HttpClient& Bot::_getDefaultHttpClient() { - static BoostHttpOnlySslClient instance; + static CurlHttpClient instance; return instance; } |