summaryrefslogtreecommitdiff
path: root/include/tgbot/EventHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tgbot/EventHandler.h')
-rw-r--r--include/tgbot/EventHandler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/tgbot/EventHandler.h b/include/tgbot/EventHandler.h
index aee230a..64f74cd 100644
--- a/include/tgbot/EventHandler.h
+++ b/include/tgbot/EventHandler.h
@@ -31,8 +31,8 @@ namespace TgBot {
class EventHandler {
- inline void handleMessage(const Message::Ptr& message){
- _broadcaster->broadcastAnyMessage(update->message);
+ void handleMessage(const Message::Ptr& message) const {
+ _broadcaster->broadcastAnyMessage(message);
if (StringTools::startsWith(message->text, "/")) {
unsigned long splitPosition;
@@ -68,7 +68,7 @@ public:
if (update->chosenInlineResult != NULL)
_broadcaster->broadcastChosenInlineResult(update->chosenInlineResult);
if (update->message != NULL)
- handleMessag(update->message);
+ handleMessage(update->message);
}
private: