From 24f89e57b89c5ea2793045f05862085a050b17c3 Mon Sep 17 00:00:00 2001 From: "alexei.dolgolyov" Date: Thu, 19 Mar 2026 00:46:17 +0300 Subject: [PATCH] Replace deprecated `target` with `chat_id` in Telegram bot service calls Fixes deprecation warning for HA 2026.9.0 where telegram_bot.send_message `target` parameter is being removed in favor of `chat_id`. Co-Authored-By: Claude Opus 4.6 (1M context) --- Common/Telegram Commands/blueprint.yaml | 2 +- Common/Telegram Question/blueprint.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Common/Telegram Commands/blueprint.yaml b/Common/Telegram Commands/blueprint.yaml index 861f3a2..cfb8873 100644 --- a/Common/Telegram Commands/blueprint.yaml +++ b/Common/Telegram Commands/blueprint.yaml @@ -242,5 +242,5 @@ action: sequence: - service: telegram_bot.send_message data: - target: "{{ chat_id }}" + chat_id: "{{ chat_id }}" message: "{{ reply_message }}" diff --git a/Common/Telegram Question/blueprint.yaml b/Common/Telegram Question/blueprint.yaml index 586cc9f..f65fe3e 100644 --- a/Common/Telegram Question/blueprint.yaml +++ b/Common/Telegram Question/blueprint.yaml @@ -286,7 +286,7 @@ action: sequence: - service: telegram_bot.send_message data: - target: "{{ chat_id }}" + chat_id: "{{ chat_id }}" message: "{{ answers[button_index] }}" # Reply to original message unless we're deleting it reply_to_message_id: > @@ -397,7 +397,7 @@ action: # Send the message with keyboard - service: telegram_bot.send_message data: - target: "{{ result_chat_ids }}" + chat_id: "{{ result_chat_ids }}" message: "{{ message_text }}" inline_keyboard: "{{ inline_keyboard }}" config_entry_id: >