Adding 'set_message_reaction' action (#39430)

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
This commit is contained in:
Aviad Levy 2025-06-16 16:49:24 +03:00 committed by GitHub
parent 6b6e25743d
commit b0178159d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,7 +114,7 @@ Chat ID:
## Notification actions
Available actions: `send_message`, `send_photo`, `send_video`, `send_animation`, `send_voice`, `send_sticker`, `send_document`, `send_location`, `edit_message`, `edit_caption`, `edit_replymarkup`, `answer_callback_query`, `delete_message` and `leave_chat`.
Available actions: `send_message`, `send_photo`, `send_video`, `send_animation`, `send_voice`, `send_sticker`, `send_document`, `send_location`, `edit_message`, `edit_caption`, `edit_replymarkup`, `answer_callback_query`, `delete_message`, `leave_chat` and `set_message_reaction`.
Actions that send contents (`send_*`) will return a list of `message_id`/`chat_id` for messages delivered (in a property called `chats`). This will populate [Response Data](/docs/scripts/perform-actions#use-templates-to-handle-response-data) that you can further utilize in your automations to edit/delete the message later based on the `message_id`. See the example later on this page for usage instructions.
@ -399,6 +399,18 @@ Remove the bot from the chat group where it was added.
| `config_entry_id` | yes | The config entry representing the Telegram bot to leave the chat. Required if you have multiple Telegram bots.|
| `chat_id` | no | The chat_id from where to remove the bot. |
### Action `telegram_bot.set_message_reaction`
Sets the bot's reaction for a given message.
| Data data attribute | Optional | Description |
| ------------------- | -------- | ---------------------------------------------------------------- |
| `config_entry_id` | yes | The config entry representing the Telegram bot to set the message reaction. Required if you have multiple Telegram bots. |
| `message_id` | no | Id of the message to react to. |
| `chat_id` | no | Id of the chat containing the message. |
| `reaction` | no | Emoji to react to the message with. |
| `is_big` | yes | Whether to use a large variant of the reaction animation. |
## Telegram notification platform
The [`telegram` notification platform](/integrations/telegram) requires the `telegram_bot` integration to work with, and it's designed to generate a customized shortcut (`notify.USERNAME`) to send notifications (messages, photos, documents, and locations) to a particular `chat_id` with the old syntax, allowing backward compatibility. The data attributes `parse_mode`, `disable_notification`, `message_tag`, `disable_web_page_preview`, and `message_thread_id` are also supported.