- 微调:把文本尾部多余的空格和换行去掉

This commit is contained in:
yshtcn 2023-09-08 12:56:24 +08:00
parent a48f0c8ff9
commit 69cba3a03b

View File

@ -119,7 +119,7 @@ def send_telegram_message(bot_id, chat_id, title, desp=None, url=None):
text = title # 初始化 text 为 title
text += f"\n\n{(desp.split(delimiter)[0] if delimiter and desp else desp) if desp else ''}"
text =text.rstrip()
# 使用正则表达式来识别受影响的链接