From 32ef43fe6e5f91c5012df1cb180870723105e1ad Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 30 Jan 2022 16:50:23 -0800 Subject: [PATCH] Revert "Default Telegram to MarkdownV2 when HTML disabled" This reverts commit b9f04ac71ae8a67e1fc37534cc8d1cf85d8af38b. Ref #1635 --- plexpy/notifiers.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 5eae6b55..1c8bf0fb 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -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',