TelePilot2 icon

TelePilot2

Your Personal Telegram CoPilot

Message → Edit Message Text

AI-generated

Summary

Edits the text of an existing message in a Telegram chat via the TelePilot2 TDLib client.

Inputs

  • chat_id (required) — ID of the chat containing the message to edit. Required.
  • message_id (required) — Identifier of the message whose text will be replaced. Required.
  • messageText (required) — The new text to set for the message. Required.

Output shape

A single JSON item containing the result of client.invoke({ _: 'editMessageText', chat_id, message_id, input_message_content: { _: 'inputMessageText', text: { _: 'formattedText', text: messageText } } }).

On success, returns the TDLib editMessageText result, which is the edited message object. If the workflow has Continue On Fail enabled and Telegram returns an error, the node returns a JSON object containing the error message instead of throwing.

Examples

Example 1: A workflow sent a message earlier, and a later step needs to correct or update its text without sending a new message.

Edits the text of an existing message in a Telegram chat.

Links

Discussion