From b2af26d4e678402b11ce6fae168fe0551dd5103c Mon Sep 17 00:00:00 2001 From: eleksir Date: Fri, 13 May 2022 11:50:41 +0300 Subject: [PATCH] Ratelimit good morning greet --- lib/TelegramBot.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/TelegramBot.pm b/lib/TelegramBot.pm index b562855..9edda61 100644 --- a/lib/TelegramBot.pm +++ b/lib/TelegramBot.pm @@ -85,6 +85,9 @@ sub __cron { $pubsub->json ($c->{'redis_router_channel'})->notify ( $c->{'redis_router_channel'} => $rmsg, ); + + # Ratelimit this, just in case + sleep (1); } }