tgbot-cpp
Loading...
Searching...
No Matches
EventHandler.h
Go to the documentation of this file.
1#pragma once
2
4#include "tgbot/Types.h"
5#include "tgbot/export.h"
6
7namespace TgBot {
8
13public:
14 explicit EventHandler(const EventBroadcaster& broadcaster);
15
16 void handleUpdate(const std::shared_ptr<Update>& update) const;
17
18private:
19 const EventBroadcaster& _broadcaster;
20
21 void handleMessage(const std::shared_ptr<Message>& message) const;
22};
23
24} // namespace TgBot
This class holds all event listeners.
void handleUpdate(const std::shared_ptr< Update > &update) const
EventHandler(const EventBroadcaster &broadcaster)
#define TGBOT_API
Definition export.h:5
Definition Api.h:17