mirror of
https://github.com/yshtcn/ServerChanPush2TelegramBot.git
synced 2025-12-11 16:50:22 +08:00
- 微调:把文本尾部多余的空格和换行去掉
This commit is contained in:
parent
a48f0c8ff9
commit
69cba3a03b
@ -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()
|
||||
|
||||
|
||||
# 使用正则表达式来识别受影响的链接
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user