Fix inconsistently spelled occurrences of "ID" in telegram_bot integration (#135928)

* Make all occurrences of "ID" in telegram_bot consistent

- change all remaining occurrences of "id" or "Id" to the correct spelling "ID"
- change "chat_id" to the UI-friedly "chat ID"
- use "ID of the chat …" in descriptions, matching "ID of the message …"
- fix the edit_replymarkup action's description to also use "Edits …", matching all other descriptions with "Sends …" or "Edits …"

* Use translatable descriptions for the Timeout fields

Uses the description from the online documentation that can be translated while the current ones use the action name which makes it difficult to handle in other languages.
pull/129761/merge
Norbert Rittel 2025-01-18 21:54:44 +01:00 committed by GitHub
parent 19e5b091c5
commit b32c401c24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 21 deletions

View File

@ -14,7 +14,7 @@
},
"target": {
"name": "Target",
"description": "An array of pre-authorized chat_ids to send the notification to. If not present, first allowed chat_id is the default."
"description": "An array of pre-authorized chat IDs to send the notification to. If not present, first allowed chat ID is the default."
},
"parse_mode": {
"name": "Parse mode",
@ -30,7 +30,7 @@
},
"timeout": {
"name": "Read timeout",
"description": "Read timeout for send message. Will help with timeout errors (poor internet connection, etc)s."
"description": "Timeout for sending the message in seconds. Will help with timeout errors (poor Internet connection, etc)."
},
"keyboard": {
"name": "Keyboard",
@ -45,11 +45,11 @@
"description": "Tag for sent message."
},
"reply_to_message_id": {
"name": "Reply to message id",
"name": "Reply to message ID",
"description": "Mark the message as a reply to a previous message."
},
"message_thread_id": {
"name": "Message thread id",
"name": "Message thread ID",
"description": "Unique identifier for the target message thread (topic) of the forum; for forum supergroups only."
}
}
@ -84,7 +84,7 @@
},
"target": {
"name": "Target",
"description": "An array of pre-authorized chat_ids to send the document to. If not present, first allowed chat_id is the default."
"description": "An array of pre-authorized chat IDs to send the document to. If not present, first allowed chat ID is the default."
},
"parse_mode": {
"name": "[%key:component::telegram_bot::services::send_message::fields::parse_mode::name%]",
@ -100,7 +100,7 @@
},
"timeout": {
"name": "Read timeout",
"description": "Read timeout for send photo."
"description": "Timeout for sending the photo in seconds."
},
"keyboard": {
"name": "[%key:component::telegram_bot::services::send_message::fields::keyboard::name%]",
@ -166,7 +166,7 @@
},
"timeout": {
"name": "Read timeout",
"description": "Read timeout for send sticker."
"description": "Timeout for sending the sticker in seconds."
},
"keyboard": {
"name": "[%key:component::telegram_bot::services::send_message::fields::keyboard::name%]",
@ -306,7 +306,7 @@
},
"timeout": {
"name": "Read timeout",
"description": "Read timeout for send video."
"description": "Timeout for sending the video in seconds."
},
"keyboard": {
"name": "[%key:component::telegram_bot::services::send_message::fields::keyboard::name%]",
@ -372,7 +372,7 @@
},
"timeout": {
"name": "Read timeout",
"description": "Read timeout for send voice."
"description": "Timeout for sending the voice in seconds."
},
"keyboard": {
"name": "[%key:component::telegram_bot::services::send_message::fields::keyboard::name%]",
@ -442,7 +442,7 @@
},
"timeout": {
"name": "Read timeout",
"description": "Read timeout for send document."
"description": "Timeout for sending the document in seconds."
},
"keyboard": {
"name": "[%key:component::telegram_bot::services::send_message::fields::keyboard::name%]",
@ -480,7 +480,7 @@
},
"target": {
"name": "Target",
"description": "An array of pre-authorized chat_ids to send the location to. If not present, first allowed chat_id is the default."
"description": "An array of pre-authorized chat IDs to send the location to. If not present, first allowed chat ID is the default."
},
"disable_notification": {
"name": "[%key:component::telegram_bot::services::send_message::fields::disable_notification::name%]",
@ -546,7 +546,7 @@
},
"timeout": {
"name": "Read timeout",
"description": "Read timeout for send poll."
"description": "Timeout for sending the poll in seconds."
},
"message_tag": {
"name": "[%key:component::telegram_bot::services::send_message::fields::message_tag::name%]",
@ -568,11 +568,11 @@
"fields": {
"message_id": {
"name": "Message ID",
"description": "Id of the message to edit."
"description": "ID of the message to edit."
},
"chat_id": {
"name": "Chat ID",
"description": "The chat_id where to edit the message."
"description": "ID of the chat where to edit the message."
},
"message": {
"name": "Message",
@ -606,7 +606,7 @@
},
"chat_id": {
"name": "[%key:component::telegram_bot::services::edit_message::fields::chat_id::name%]",
"description": "The chat_id where to edit the caption."
"description": "ID of the chat where to edit the caption."
},
"caption": {
"name": "[%key:component::telegram_bot::services::send_photo::fields::caption::name%]",
@ -620,7 +620,7 @@
},
"edit_replymarkup": {
"name": "Edit reply markup",
"description": "Edit the inline keyboard of a previously sent message.",
"description": "Edits the inline keyboard of a previously sent message.",
"fields": {
"message_id": {
"name": "[%key:component::telegram_bot::services::edit_message::fields::message_id::name%]",
@ -628,7 +628,7 @@
},
"chat_id": {
"name": "[%key:component::telegram_bot::services::edit_message::fields::chat_id::name%]",
"description": "The chat_id where to edit the reply_markup."
"description": "ID of the chat where to edit the reply markup."
},
"inline_keyboard": {
"name": "[%key:component::telegram_bot::services::send_message::fields::inline_keyboard::name%]",
@ -646,7 +646,7 @@
},
"callback_query_id": {
"name": "Callback query ID",
"description": "Unique id of the callback response."
"description": "Unique ID of the callback response."
},
"show_alert": {
"name": "Show alert",
@ -654,7 +654,7 @@
},
"timeout": {
"name": "Read timeout",
"description": "Read timeout for sending the answer."
"description": "Timeout for sending the answer in seconds."
}
}
},
@ -664,11 +664,11 @@
"fields": {
"message_id": {
"name": "[%key:component::telegram_bot::services::edit_message::fields::message_id::name%]",
"description": "Id of the message to delete."
"description": "ID of the message to delete."
},
"chat_id": {
"name": "[%key:component::telegram_bot::services::edit_message::fields::chat_id::name%]",
"description": "The chat_id where to delete the message."
"description": "ID of the chat where to delete the message."
}
}
}