Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node allows editing the text of a message in Telegram. It supports editing both regular chat messages and inline messages. Users can specify the target chat or inline message by providing identifiers, and update the message text along with optional interface elements like inline keyboards. This is useful for dynamically updating messages in Telegram bots or automations, such as correcting information, updating status, or modifying interactive message content.
Use Case Examples
- Updating a previously sent message in a Telegram chat to correct a typo.
- Changing the text of an inline message in response to user interaction.
- Modifying a message to include updated information or new instructions.
Properties
| Name | Meaning |
|---|---|
| Message Type | Specifies whether the message to edit is a regular chat message or an inline message. |
| Chat ID | Unique identifier for the target chat or username, required when editing a regular message. |
| Message ID | Unique identifier of the message to edit, required when editing a regular message. |
| Inline Message ID | Unique identifier of the inline message to edit, required when editing an inline message. |
| Reply Markup | Additional interface options to include with the edited message, such as inline keyboards or none. |
| Text | The new text content of the message to be sent. |
| Additional Fields | Optional advanced settings such as parse mode, disable web page preview, link preview options, and custom JSON fields for advanced Telegram API options. |
Output
JSON
json- The JSON response from the Telegram API after editing the message, containing details of the edited message.
Dependencies
- Telegram API with an API key credential
Troubleshooting
- Ensure that the chat ID and message ID or inline message ID are correct and correspond to an existing message.
- If editing an inline message, the inlineMessageId must be provided and valid.
- The bot must have permission to edit the message in the target chat.
- Common errors include invalid identifiers or insufficient permissions, which can be resolved by verifying IDs and bot permissions.
Links
- Telegram Bot API - editMessageText - Official Telegram API documentation for editing message text.