blob: 8e6d667084c006853f3248f2906d80e1a19d087a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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)
// uncomment when c++14 is available
//, _eventBroadcaster(std::make_unique<EventBroadcaster>())
, _eventBroadcaster(new EventBroadcaster())
, _eventHandler(getEvents()) {
}
}
|