diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index b939a28d..e4748faf 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -3365,7 +3365,7 @@ class TELEGRAM(Notifier): _DEFAULT_CONFIG = {'bot_token': '', 'chat_id': '', 'disable_web_preview': 0, - 'silent_message': 0, + 'silent_notification': 0, 'html_support': 1, 'incl_subject': 1, 'incl_poster': 0 @@ -3407,7 +3407,7 @@ class TELEGRAM(Notifier): data.pop('disable_notification') #This prevents from alerting with 2 sounds Telegram when the Silent Message is OFF: one alert for the photo and the second one for the text else: data['caption'] = text.encode('utf-8') - if self.config['silent_message']: + if self.config['silent_notification']: data['disable_notification'] = True self.make_request('https://api.telegram.org/bot{}/sendPhoto'.format(self.config['bot_token']), data=data, files=files) @@ -3418,7 +3418,7 @@ class TELEGRAM(Notifier): if self.config['disable_web_preview']: data['disable_web_page_preview'] = True - if self.config['silent_message']: + if self.config['silent_notification']: data['disable_notification'] = True headers = {'Content-type': 'application/x-www-form-urlencoded'} @@ -3470,8 +3470,8 @@ class TELEGRAM(Notifier): 'input_type': 'checkbox' }, {'label': 'Enable Silent Notifications', - 'value': self.config['silent_message'], - 'name': 'telegram_silent_message', + 'value': self.config['silent_notification'], + 'name': 'telegram_silent_notification', 'description': 'Send notifications silently without any alert sounds.', 'input_type': 'checkbox' }