mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
fix:对telegram发送标题进行转义
This commit is contained in:
@@ -321,6 +321,8 @@ class Telegram:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if title:
|
||||||
|
title = self.escape_markdown(title)
|
||||||
index, image, caption = 1, "", "*%s*" % title
|
index, image, caption = 1, "", "*%s*" % title
|
||||||
for media in medias:
|
for media in medias:
|
||||||
if not image:
|
if not image:
|
||||||
@@ -382,6 +384,8 @@ class Telegram:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if title:
|
||||||
|
title = self.escape_markdown(title)
|
||||||
index, caption = 1, "*%s*" % title
|
index, caption = 1, "*%s*" % title
|
||||||
image = torrents[0].media_info.get_message_image()
|
image = torrents[0].media_info.get_message_image()
|
||||||
for context in torrents:
|
for context in torrents:
|
||||||
|
|||||||
Reference in New Issue
Block a user