From eb9f04e0ba045d159a758d9e9de5fe2a696c5a63 Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Tue, 10 Sep 2024 14:27:43 +0200 Subject: [PATCH] Polling intervals updated --- tgbot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tgbot.py b/tgbot.py index 65f40d7..67082e7 100644 --- a/tgbot.py +++ b/tgbot.py @@ -409,6 +409,10 @@ class TelegramBot: if time_until_slot < 3600: # If less than 1 hour return 300 # 5 minutes + if time_until_slot < 3600 * 2: # If less than 2 hour + return 600 # 10 minutes + if time_until_slot < 3600 * 3: # If less than 3 hour + return 900 # 15 minutes else: return 1800 # 30 minutes