From 38e4b3867b50065aeb6110fac0ce001031242349 Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Sat, 14 Mar 2020 17:56:27 +0300 Subject: Move Bot ctor in its own file. --- src/Bot.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/Bot.cpp (limited to 'src') diff --git a/src/Bot.cpp b/src/Bot.cpp new file mode 100644 index 0000000..b1e1ea5 --- /dev/null +++ b/src/Bot.cpp @@ -0,0 +1,14 @@ +#include "tgbot/Bot.h" + +#include "tgbot/EventBroadcaster.h" + +namespace TgBot { + +Bot::Bot(std::string token, const HttpClient& httpClient) + : _token(std::move(token)) + , _api(_token, httpClient) + , _eventBroadcaster(std::make_unique()) + , _eventHandler(getEvents()) { +} + +} -- cgit v1.2.3