1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-20 02:48:57 +00:00

Fix send_poll action for Telegram bot (#155076)

This commit is contained in:
hanwg
2025-10-24 22:29:27 +08:00
committed by GitHub
parent 1d8eaeb8af
commit 2d84bd65fe
2 changed files with 4 additions and 9 deletions

View File

@@ -690,10 +690,13 @@ send_poll:
selector: selector:
text: text:
options: options:
example: '["Option 1", "Option 2", "Option 3"]'
required: true required: true
selector: selector:
object: text:
multiple: true
is_anonymous: is_anonymous:
default: true
selector: selector:
boolean: boolean:
allows_multiple_answers: allows_multiple_answers:
@@ -714,10 +717,6 @@ send_poll:
min: 1 min: 1
max: 3600 max: 3600
unit_of_measurement: seconds unit_of_measurement: seconds
message_tag:
example: "msg_to_edit"
selector:
text:
reply_to_message_id: reply_to_message_id:
selector: selector:
number: number:

View File

@@ -801,10 +801,6 @@
"name": "Read timeout", "name": "Read timeout",
"description": "Timeout for sending the poll in seconds." "description": "Timeout for sending the poll in seconds."
}, },
"message_tag": {
"name": "[%key:component::telegram_bot::services::send_message::fields::message_tag::name%]",
"description": "[%key:component::telegram_bot::services::send_message::fields::message_tag::description%]"
},
"reply_to_message_id": { "reply_to_message_id": {
"name": "[%key:component::telegram_bot::services::send_message::fields::reply_to_message_id::name%]", "name": "[%key:component::telegram_bot::services::send_message::fields::reply_to_message_id::name%]",
"description": "[%key:component::telegram_bot::services::send_message::fields::reply_to_message_id::description%]" "description": "[%key:component::telegram_bot::services::send_message::fields::reply_to_message_id::description%]"