From 9fed95bc4ab7a2394a21135e7fb77861a49f7336 Mon Sep 17 00:00:00 2001 From: eleksir Date: Thu, 24 Apr 2025 21:55:15 +0300 Subject: [PATCH] Set explicitly ["chat_member","message_reaction","message_reaction_count"] as additional updates i want to receive --- lib/Teapot/Bot/Brain.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Teapot/Bot/Brain.pm b/lib/Teapot/Bot/Brain.pm index 9bbcd37..c35f70b 100644 --- a/lib/Teapot/Bot/Brain.pm +++ b/lib/Teapot/Bot/Brain.pm @@ -851,7 +851,7 @@ sub _add_getUpdates_handler { return if $http_active; my $offset = $last_update_id + 1; - my $updateURL = "https://api.telegram.org/bot${token}/getUpdates?offset=${offset}&timeout=60"; + my $updateURL = "https://api.telegram.org/bot${token}/getUpdates?offset=${offset}&timeout=60&allowed_updates=%5B%22chat_member%22%2C%22message_reaction%22%2C%22message_reaction_count%22%5D"; $http_active = 1; $self->ua->get(