diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2021-12-04 12:02:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-04 12:02:51 +0100 |
commit | 1e0503ef3c114f9eb994b0571ef8ae37b59a4df0 (patch) | |
tree | 63d21a83de25858862038e9be5dd40216ddab739 /src | |
parent | 55d3fbca78774d7c033cd31860fd1d5f11dd2ad1 (diff) | |
parent | 1b05926638cd09605da46124f3db330a481eefb5 (diff) |
Merge pull request #185 from dmikushin/channelPost
Handle channelPost similarly to a direct message
Diffstat (limited to 'src')
-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 { |