#include "tgbot/net/BoostHttpOnlySslClient.h" #include "tgbot/Bot.h" #include "tgbot/EventBroadcaster.h" #include #include namespace TgBot { Bot::Bot(std::string token, const std::string& url, const HttpClient& httpClient) : _token(std::move(token)) , _api(_token, httpClient, url) , _eventBroadcaster(std::make_unique()) , _eventHandler(getEvents()) { } HttpClient& Bot::_getDefaultHttpClient() { static BoostHttpOnlySslClient instance; return instance; } }