add delay to avoid block by telegram-bot-api

This commit is contained in:
2021-12-20 13:05:07 +08:00
parent d8e481f391
commit b4f5de2060

View File

@@ -833,7 +833,11 @@ class updateThread(Thread):
self._main = main
def run(self):
t = None
while True:
if t is not None and time() - t < 0.1:
sleep(0.1)
t = time()
self._main._updateLoop()