blob: e0acbdbd874c7ff4906b9c6c2c3b7aba48dcc483 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "tgbot/Bot.h"
#include "tgbot/EventBroadcaster.h"
#include <memory>
#include <string>
namespace TgBot {
Bot::Bot(std::string token, const HttpClient& httpClient)
: _token(std::move(token))
, _api(_token, httpClient)
, _eventBroadcaster(std::make_unique<EventBroadcaster>())
, _eventHandler(getEvents()) {
}
}
|