This class holds all event listeners.
More...
#include <EventBroadcaster.h>
This class holds all event listeners.
Definition at line 45 of file EventBroadcaster.h.
void TgBot::EventBroadcaster::onAnyMessage |
( |
const MessageListener & |
listener | ) |
|
|
inline |
Registers listener which receives all messages which the bot can ever receive.
- Parameters
-
Definition at line 59 of file EventBroadcaster.h.
Registers listener which receives all the chosen inline result.
- Parameters
-
Definition at line 112 of file EventBroadcaster.h.
void TgBot::EventBroadcaster::onCommand |
( |
const std::string & |
commandName, |
|
|
const MessageListener & |
listener |
|
) |
| |
|
inline |
Registers listener which receives all messages with commands (messages with leading '/' char).
- Parameters
-
commandName | Command name which listener can handle. |
listener | Listener. |
Definition at line 68 of file EventBroadcaster.h.
void TgBot::EventBroadcaster::onCommand |
( |
const std::initializer_list< std::string > & |
commandsList, |
|
|
const MessageListener & |
listener |
|
) |
| |
|
inline |
Registers listener which receives all messages with commands (messages with leading '/' char).
- Parameters
-
commandsList | Commands names which listener can handle. |
listener | Listener. |
Definition at line 77 of file EventBroadcaster.h.
Registers listener which receives all the inline query.
- Parameters
-
Definition at line 104 of file EventBroadcaster.h.
void TgBot::EventBroadcaster::onNonCommandMessage |
( |
const MessageListener & |
listener | ) |
|
|
inline |
Registers listener which receives all messages without commands (messages with no leading '/' char)
- Parameters
-
Definition at line 96 of file EventBroadcaster.h.
void TgBot::EventBroadcaster::onUnknownCommand |
( |
const MessageListener & |
listener | ) |
|
|
inline |
Registers listener which receives all messages with commands (messages with leading '/' char) which haven't been handled by other listeners.
- Parameters
-
Definition at line 88 of file EventBroadcaster.h.
The documentation for this class was generated from the following file: