From 8554689fefc30a7f1a50a233c3f24173a067f570 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 30 May 2022 23:23:09 +0300 Subject: [PATCH] #7 Notifier counter reset fix. --- telegram.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telegram.py b/telegram.py index 6b909db..a4b0bea 100644 --- a/telegram.py +++ b/telegram.py @@ -106,6 +106,7 @@ class Notifier: if self.sent_counter >= self.BATCH_LIMIT: # TODO: probably implement better later time.sleep(1) + self.sent_counter = 0 def __send_update(self, telegram_id: int, update: FeedItem): self.bot.send_message(