Telegram Bot send_poll rejects message_thread_id
jwhb opened this issue · 1 comments
The problem
According to the Telegram Bot documentation most telegram_bot.send_*
actions, including send_message
, should support message_thread_id
(see #112715 and home-assistant/home-assistant.io#29857).
Calling the action from the automation editor or Developer Tools -> Actions yields:
Failed to perform the action telegram_bot.send_poll. extra keys not allowed @ data['message_thread_id']. Got None
What version of Home Assistant Core has the issue?
core-2024.10.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
telegram_bot
Link to integration documentation on our website
https://www.home-assistant.io/integrations/telegram_bot/#action-telegram_botsend_poll
Diagnostics information
2024-10-19 15:40:48.088 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Invalid data for call_service at pos 1: extra keys not allowed @ data['message_thread_id']
Example YAML snippet
data:
target: -1001234567890
message_thread_id: 57
is_anonymous: "no"
question: Will this action run?
options:
- No
- Nope
- Nevarrr
alias: Test send poll (does not work)
action: telegram_bot.send_poll
Anything in the logs that might be useful for us?
No response
Additional information
Specifying message_thread_id
for send_message
, send_video
and send_location
works as expected.