telegram: switch to short polling
This commit is contained in:
parent
a7c8caccb4
commit
f40fa87963
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue