From f173c21695fba68f3afe063bfea2818ebc928608 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Fri, 22 Sep 2023 13:04:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20telegram.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/telegram/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/telegram/telegram.py b/app/modules/telegram/telegram.py index 3bb2a1c8..48b9f1ca 100644 --- a/app/modules/telegram/telegram.py +++ b/app/modules/telegram/telegram.py @@ -52,7 +52,7 @@ class Telegram(metaclass=Singleton): 定义线程函数来运行 infinity_polling """ try: - _bot.infinity_polling(long_polling_timeout=10) + _bot.infinity_polling(long_polling_timeout=30) except Exception as err: logger.error(f"Telegram消息接收服务异常:{err}")