Actions7
- Media Actions
- Message Actions
- Moderation Actions
Message → Replace Image
AI-generatedSummary
Replace a Telegram message’s media using a direct URL or an incoming binary file, optionally remove its media, and update its text or caption. The operation targets the specified chat and message, then returns the updated message details.
Inputs
- Chat ID (required) — Chat containing the message to edit; defaults to the incoming item’s
chatId. - Message ID (required) — ID of the message to edit.
- Text / Caption — Text for a text message or caption for a media message; defaults to the incoming item’s
text. - Remove Media — When enabled and no replacement URL is used, removes the message’s media. If Telegram rejects removing media, the operation may delete the original message and post the caption as a new message.
- Replace Media URL — Direct URL for replacement media. When provided, it takes precedence over incoming binary data and media removal. If blank and media removal is disabled, the operation uses incoming binary data when available; otherwise, it edits only the text or caption.
Output shape
A single n8n item per input item on the success output.
The output JSON preserves the input item’s standard Telegram fields and adds
status,action, andblurred;textandrawTextreflect the fetched message when available, falling back to the supplied text or caption. The operation does not return replacement media as binary data.