summaryrefslogtreecommitdiff
path: root/src/Bot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Bot.cpp')
-rw-r--r--src/Bot.cpp14
1 files changed, 14 insertions, 0 deletions
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<EventBroadcaster>())
+ , _eventHandler(getEvents()) {
+}
+
+}