#7 Notifier counter reset fix.
This commit is contained in:
parent
f9ffdac38a
commit
8554689fef
|
@ -106,6 +106,7 @@ class Notifier:
|
||||||
if self.sent_counter >= self.BATCH_LIMIT:
|
if self.sent_counter >= self.BATCH_LIMIT:
|
||||||
# TODO: probably implement better later
|
# TODO: probably implement better later
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
self.sent_counter = 0
|
||||||
|
|
||||||
def __send_update(self, telegram_id: int, update: FeedItem):
|
def __send_update(self, telegram_id: int, update: FeedItem):
|
||||||
self.bot.send_message(
|
self.bot.send_message(
|
||||||
|
|
Loading…
Reference in a new issue