Merge pull request #5487 from cddjr/bugfix/issue_5242

This commit is contained in:
jxxghp
2026-02-11 16:02:54 +08:00
committed by GitHub
+8 -4
View File
@@ -237,10 +237,14 @@ class Telegram:
return False return False
try: try:
if title and text: # 标准化标题后再加粗,避免**符号被显示为文本
caption = f"**{title}**\n{text}" bold_title = (
elif title: f"**{standardize(title).removesuffix('\n')}**" if title else None
caption = f"**{title}**" )
if bold_title and text:
caption = f"{bold_title}\n{text}"
elif bold_title:
caption = bold_title
elif text: elif text:
caption = text caption = text
else: else: