From 59a1a3538be52d4d81b4fa18ddb771743802fc30 Mon Sep 17 00:00:00 2001 From: eleksir Date: Thu, 8 May 2025 17:20:50 +0300 Subject: [PATCH] I have nothing to do with chat reactions, so log it and skip --- lib/TelegramBot.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/TelegramBot.pm b/lib/TelegramBot.pm index 4039872..45b6be4 100644 --- a/lib/TelegramBot.pm +++ b/lib/TelegramBot.pm @@ -265,6 +265,11 @@ sub __on_msg { return; } + if ($msg->can ('old_reaction') || $msg->can ('new_reaction')) { + $log->debug (sprintf ('[DEBUG] user %s in %s posts reaction to message', $highlight, $chatname)); + return; + } + # is this a 1-on-1 ? if ($msg->chat->type eq 'private') { unless (defined $msg->text) {