From 2206c6299d8753d151b9d5852c7f16138a93fd2e Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Thu, 14 Jul 2022 01:37:18 +0000 Subject: [PATCH] change time.sleep to 1 --- telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram.py b/telegram.py index c86289d..63f783e 100644 --- a/telegram.py +++ b/telegram.py @@ -157,7 +157,7 @@ class Notifier: self.log.debug('__count_request_and_wait()') if self.sent_counter >= self.BATCH_LIMIT: self.log.debug('Requests limit exceeded, sleeping for a second') - time.sleep(2) + time.sleep(1) self.log.debug('Resetting counter') self.sent_counter = 0 self.sent_counter += 1