fix timeout
This commit is contained in:
parent
9eaef01df5
commit
a16b9b39d9
@ -52,7 +52,7 @@ class Telegram(metaclass=Singleton):
|
||||
定义线程函数来运行 infinity_polling
|
||||
"""
|
||||
try:
|
||||
_bot.infinity_polling(long_polling_timeout=5)
|
||||
_bot.infinity_polling(long_polling_timeout=10)
|
||||
except Exception as err:
|
||||
logger.error(f"Telegram消息接收服务异常:{err}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user