mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 04:35:49 +00:00
🎨 Set the specifies the maximum amount of time to wait for a write operation to complete to 10 seconds
This commit is contained in:
parent
3f91314c65
commit
8cf18e2f95
@ -234,7 +234,7 @@ class Bot:
|
||||
try:
|
||||
for _ in range(5):
|
||||
try:
|
||||
self.app.run_polling(close_loop=False)
|
||||
self.app.run_polling(close_loop=False, write_timeout=10)
|
||||
break
|
||||
except TimedOut:
|
||||
logger.warning("连接至 [blue]telegram[/] 服务器失败,正在重试", extra={"markup": True})
|
||||
|
Loading…
Reference in New Issue
Block a user