fix:对telegram发送标题进行转义

This commit is contained in:
noone
2025-11-17 15:15:28 +08:00
parent 48b1ac28de
commit 53af7f81bb

View File

@@ -321,6 +321,8 @@ class Telegram:
return None
try:
if title:
title = self.escape_markdown(title)
index, image, caption = 1, "", "*%s*" % title
for media in medias:
if not image:
@@ -382,6 +384,8 @@ class Telegram:
return None
try:
if title:
title = self.escape_markdown(title)
index, caption = 1, "*%s*" % title
image = torrents[0].media_info.get_message_image()
for context in torrents: