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) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 00:46:17 +03:00
parent a6ac4f4257
commit 24f89e57b8
2 changed files with 3 additions and 3 deletions

View File

@@ -242,5 +242,5 @@ action:
sequence:
- service: telegram_bot.send_message
data:
target: "{{ chat_id }}"
chat_id: "{{ chat_id }}"
message: "{{ reply_message }}"

View File

@@ -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: >