Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion task/utils/notification/telegram_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down