diff options
author | Dmitry Mikushin <dmitry@kernelgen.org> | 2021-03-01 15:23:59 +0100 |
---|---|---|
committer | Dmitry Mikushin <dmitry@kernelgen.org> | 2021-11-12 19:00:35 +0100 |
commit | 1b05926638cd09605da46124f3db330a481eefb5 (patch) | |
tree | 86fc51d279fdcac6ce942374e5b2b94bf51086b2 /src/EventHandler.cpp | |
parent | 814ac074633125c975fa6979e79c93cc7115a57b (diff) |
Handle channelPost similarly to a direct message
Diffstat (limited to 'src/EventHandler.cpp')
-rw-r--r-- | src/EventHandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |