blob: 4e77e3349ebe997ddde08d669a0878839d7e4b36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef TGBOT_EVENTHANDLER_H
#define TGBOT_EVENTHANDLER_H
#include "tgbot/EventBroadcaster.h"
#include "tgbot/types/Update.h"
#include "tgbot/tools/StringTools.h"
namespace TgBot {
class TGBOT_API EventHandler {
public:
explicit EventHandler(const EventBroadcaster& broadcaster) : _broadcaster(broadcaster) {
}
void handleUpdate(Update::Ptr update) const;
private:
const EventBroadcaster& _broadcaster;
void handleMessage(Message::Ptr message) const;
};
}
#endif //TGBOT_EVENTHANDLER_H
|