Skip to content

Commit

Permalink
telegram 格式由 MarkdownV2 变更为 Markdown (chen310#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
chen310 authored Mar 16, 2022
1 parent 5e52725 commit be5e683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion push/Telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def push(title, mdmsg, mdmsg_compat, textmsg, config):
return

url = 'https://api.telegram.org/bot' + config['botToken'] + '/sendMessage'
ret = requests.post(url, data={'chat_id': config['userId'], 'text': msg, 'parse_mode': "MarkdownV2"}, headers={
ret = requests.post(url, data={'chat_id': config['userId'], 'text': msg, 'parse_mode': "Markdown"}, headers={
'Content-Type': 'application/x-www-form-urlencoded'})
print('Telegram response: \n', ret.status_code)
if ret.status_code != 200:
Expand Down

0 comments on commit be5e683

Please sign in to comment.