fix timeout

This commit is contained in:
jxxghp 2023-06-23 07:19:42 +08:00
parent 9eaef01df5
commit a16b9b39d9

View File

@ -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}")