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:
@@ -242,5 +242,5 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: telegram_bot.send_message
|
- service: telegram_bot.send_message
|
||||||
data:
|
data:
|
||||||
target: "{{ chat_id }}"
|
chat_id: "{{ chat_id }}"
|
||||||
message: "{{ reply_message }}"
|
message: "{{ reply_message }}"
|
||||||
|
|||||||
@@ -286,7 +286,7 @@ action:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: telegram_bot.send_message
|
- service: telegram_bot.send_message
|
||||||
data:
|
data:
|
||||||
target: "{{ chat_id }}"
|
chat_id: "{{ chat_id }}"
|
||||||
message: "{{ answers[button_index] }}"
|
message: "{{ answers[button_index] }}"
|
||||||
# Reply to original message unless we're deleting it
|
# Reply to original message unless we're deleting it
|
||||||
reply_to_message_id: >
|
reply_to_message_id: >
|
||||||
@@ -397,7 +397,7 @@ action:
|
|||||||
# Send the message with keyboard
|
# Send the message with keyboard
|
||||||
- service: telegram_bot.send_message
|
- service: telegram_bot.send_message
|
||||||
data:
|
data:
|
||||||
target: "{{ result_chat_ids }}"
|
chat_id: "{{ result_chat_ids }}"
|
||||||
message: "{{ message_text }}"
|
message: "{{ message_text }}"
|
||||||
inline_keyboard: "{{ inline_keyboard }}"
|
inline_keyboard: "{{ inline_keyboard }}"
|
||||||
config_entry_id: >
|
config_entry_id: >
|
||||||
|
|||||||
Reference in New Issue
Block a user