blob: b1e1ea51cee0ddc114a2a1f00383080196167d3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()) {
}
}
|