Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node operation 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 the appropriate identifiers and update the message text along with optional interface elements like inline keyboards.
Use Case Examples
- Editing a text message in a Telegram chat to correct or update information.
- Modifying an inline message's text in a Telegram bot interaction to reflect new data or 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 chat message. |
| Message ID | Unique identifier of the message to edit, required when editing a regular chat message. |
| Inline Message ID | Unique identifier of the inline message to edit, required when editing an inline message. |
| Reply Markup | Additional interface options such as inline keyboard or none. |
| Text | The new text content to set for the message. |
| Additional Fields | Optional advanced settings such as parse mode, link preview options, and custom JSON fields for advanced Telegram API options. |
Output
JSON
result- The response from the Telegram API after editing the message, containing details about the edited message.
Dependencies
- Telegram API with appropriate authentication credentials
Troubleshooting
- Ensure that the chat ID and message ID or inline message ID are correctly specified; otherwise, the edit operation will fail.
- If using inline messages, the inlineMessageId must be provided and valid.
- Custom JSON fields must be valid JSON; invalid JSON will cause errors.
- The bot must have permission to edit the message in the target chat or inline context.