From 6a5b96272ac205a2f457898a495d77eb66dda26d Mon Sep 17 00:00:00 2001 From: ildar170975 <71872483+ildar170975@users.noreply.github.com> Date: Mon, 8 Aug 2022 18:06:20 +0300 Subject: [PATCH] Add telegram disable_web_page_preview (telegram_bot.markdown) (#23571) --- source/_integrations/telegram_bot.markdown | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/source/_integrations/telegram_bot.markdown b/source/_integrations/telegram_bot.markdown index ad467c0dfe7..7af68b353ec 100644 --- a/source/_integrations/telegram_bot.markdown +++ b/source/_integrations/telegram_bot.markdown @@ -253,7 +253,7 @@ Remove the bot from the chat group where it was added. ## Telegram notification platform -The [`telegram` notification platform](/integrations/telegram) requires the `telegram_bot` integration to work with, and it's designed to generate a customized shortcut (`notify.USERNAME`) to send notifications (messages, photos, documents and locations) to a particular `chat_id` with the old syntax, allowing backward compatibility. The data attributes `parse_mode`, `disable_notification` and `message_tag` are also supported. +The [`telegram` notification platform](/integrations/telegram) requires the `telegram_bot` integration to work with, and it's designed to generate a customized shortcut (`notify.USERNAME`) to send notifications (messages, photos, documents and locations) to a particular `chat_id` with the old syntax, allowing backward compatibility. The data attributes `parse_mode`, `disable_notification`, `message_tag` and `disable_web_page_preview` are also supported. The required YAML configuration now reduces to: @@ -556,3 +556,16 @@ action: data: message_tag: "example_tag" ``` + +## Example: send_message with disabled webpage preview: + +```yaml +action: +- service: notify.telegram + data: + message: >- + HA site + data: + parse_mode: html + disable_web_page_preview: true +```