diff --git a/task/utils/notification/telegram_notification.py b/task/utils/notification/telegram_notification.py index 9765450..235e5b7 100644 --- a/task/utils/notification/telegram_notification.py +++ b/task/utils/notification/telegram_notification.py @@ -26,7 +26,7 @@ def send(self, to, header, content): raise Exception('没有设置 chat_id,无法发送 Telegram 通知') r = requests.get( - 'https://api.telegram.org/bot{}/sendMessage?chat_id={}&text={}'. + 'https://api.telegram.org/bot{}/sendMessage?chat_id={}&text={}&parse_mode=MarkdownV2'. format(self.token, to, urllib.parse.quote_plus('{}: {}'.format(header, content)))) result = r.json()