Skip to content

Commit

Permalink
TgBotApi: Use curl httpclient instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Royna2544 committed Nov 23, 2024
1 parent ad00768 commit 7c54b58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/TgBotApiImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "CommandLine.hpp"
#include "GitData.h"
#include "tgbot/Api.h"
#include "tgbot/net/CurlHttpClient.h"

bool TgBotApiImpl::validateValidArgs(const DynModule* module,
MessageExt::Ptr& message) {
Expand Down Expand Up @@ -538,7 +539,7 @@ bool TgBotApiImpl::answerCallbackQuery_impl(

TgBotApiImpl::TgBotApiImpl(const std::string_view token, AuthContext* auth,
StringResLoaderBase* loader, Providers* providers)
: _bot(std::string(token)),
: _bot(std::string(token), std::make_unique<TgBot::CurlHttpClient>()),
_auth(auth),
_loader(loader),
_provider(providers) {
Expand Down

0 comments on commit 7c54b58

Please sign in to comment.