From 1b05926638cd09605da46124f3db330a481eefb5 Mon Sep 17 00:00:00 2001 From: Dmitry Mikushin Date: Mon, 1 Mar 2021 15:23:59 +0100 Subject: Handle channelPost similarly to a direct message --- src/EventHandler.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/EventHandler.cpp') diff --git a/src/EventHandler.cpp b/src/EventHandler.cpp index cad3e4f..edf4c13 100644 --- a/src/EventHandler.cpp +++ b/src/EventHandler.cpp @@ -21,6 +21,9 @@ void EventHandler::handleUpdate(const Update::Ptr& update) const { if (update->message != nullptr) { handleMessage(update->message); } + if (update->channelPost != nullptr) { + handleMessage(update->channelPost); + } } void EventHandler::handleMessage(const Message::Ptr& message) const { -- cgit v1.2.3