Skip to content

Commit

Permalink
fix 屏蔽telebot的trackback日志
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 22, 2023
1 parent b014c4a commit 29df081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/telegram/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def run_polling():
定义线程函数来运行 infinity_polling
"""
try:
_bot.infinity_polling(long_polling_timeout=30)
_bot.infinity_polling(long_polling_timeout=30, logger_level=None)
except Exception as err:
logger.error(f"Telegram消息接收服务异常:{err}")

Expand Down

0 comments on commit 29df081

Please sign in to comment.