telegram: switch to short polling

This commit is contained in:
Egg 2024-10-09 17:09:35 +02:00
parent a7c8caccb4
commit f40fa87963

View file

@ -13,9 +13,9 @@ class TelegramBot(Bot):
try:
updates = tb.get_updates(offset=seen_tg + 1,
allowed_updates="message",
timeout=5).wait()
timeout=0).wait()
except TypeError:
updates = tb.get_updates(timeout=5).wait()
updates = tb.get_updates(timeout=0).wait()
reports = []
if updates == None:
return reports