Polling intervals updated
This commit is contained in:
parent
556596d6bf
commit
eb9f04e0ba
4
tgbot.py
4
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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user