diff --git a/homeassistant/components/telegram/notify.py b/homeassistant/components/telegram/notify.py index b87ddc670c3..bca48e4b85a 100644 --- a/homeassistant/components/telegram/notify.py +++ b/homeassistant/components/telegram/notify.py @@ -13,6 +13,7 @@ from homeassistant.components.notify import ( ) from homeassistant.components.telegram_bot import ( ATTR_DISABLE_NOTIF, + ATTR_DISABLE_WEB_PREV, ATTR_MESSAGE_TAG, ATTR_PARSER, ) @@ -76,6 +77,11 @@ class TelegramNotificationService(BaseNotificationService): parse_mode = data.get(ATTR_PARSER) service_data.update({ATTR_PARSER: parse_mode}) + # Set disable_web_page_preview + if data is not None and ATTR_DISABLE_WEB_PREV in data: + disable_web_page_preview = data[ATTR_DISABLE_WEB_PREV] + service_data.update({ATTR_DISABLE_WEB_PREV: disable_web_page_preview}) + # Get keyboard info if data is not None and ATTR_KEYBOARD in data: keys = data.get(ATTR_KEYBOARD)