1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

_make_request function edited

This commit is contained in:
_run
2021-12-25 16:04:29 +04:00
parent 744549defe
commit 24a9491ec0
2 changed files with 36 additions and 11 deletions

View File

@@ -317,6 +317,14 @@ class AsyncTeleBot:
except asyncio.CancelledError:
return
except asyncio_helper.RequestTimeout as e:
logger.error(str(e))
if non_stop:
await asyncio.sleep(2)
continue
else:
return
except asyncio_helper.ApiTelegramException as e:
logger.error(str(e))