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