Revert "Default Telegram to MarkdownV2 when HTML disabled"

This reverts commit b9f04ac71a.

Ref #1635
This commit is contained in:
JonnyWong16 2022-01-30 16:50:23 -08:00
parent 088bbd3bb6
commit 32ef43fe6e
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -3869,7 +3869,7 @@ class TELEGRAM(Notifier):
'chat_id': '',
'disable_web_preview': 0,
'silent_notification': 0,
'html_support': 0,
'html_support': 1,
'incl_subject': 1,
'incl_poster': 0
}
@ -3884,8 +3884,6 @@ class TELEGRAM(Notifier):
if self.config['html_support']:
data['parse_mode'] = 'HTML'
else:
data['parse_mode'] = 'MarkdownV2'
if self.config['incl_poster'] and kwargs.get('parameters'):
# Grab formatted metadata
@ -3965,7 +3963,7 @@ class TELEGRAM(Notifier):
{'label': 'Enable HTML Support',
'value': self.config['html_support'],
'name': 'telegram_html_support',
'description': 'Enable to style your messages using HTML. Disable to use Markdown instead.',
'description': 'Style your messages using these HTML tags: b, i, a[href], code, pre.',
'input_type': 'checkbox'
},
{'label': 'Disable Web Page Previews',