---
title: "Edit a sent message"
locale: en
url: https://tlg.builera.app/en/docs/reference/rest/messages.edit
verified: 2026-10-24
app_version: "2.0"
generated: true
---

# Edit a sent message

Edit the text (or caption) of a message this account sent, within Telegram's 48-hour window. The app shows the new text once Telegram confirms.

Edit the text (or caption) of a message this account sent, within Telegram's 48-hour window. The app shows the new text once Telegram confirms.

## Overview

| Name | Value |
| --- | --- |
| Code | `messages.edit` |
| Scope needed | `messages.manage` |
| Risk | Write |
| May need confirmation | No |
| Runs as | Queues work for a node |
| Needs `Idempotency-Key` | Yes |
| Member roles allowed | `owner`, `manager`, `agent` |
| Needs a worker from version | `1.0.15` |
| In the app | Inbox → message menu → Edit |

## Input fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `messageId` | `uuid` | Yes |   |
| `text` | `text` | Yes |   |

## Example request

```bash
curl -X POST https://tlg.builera.app/api/public/v2/ops/messages.edit \
  -H "Authorization: Bearer $TELEGRAM_AUTO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: <unique key per operation>" \
  -d '{"messageId":"00000000-0000-0000-0000-000000000000","text":"…"}'
```

## Output fields (`data`)

| Field | Type | Required |
| --- | --- | --- |
| `ok` | `true` | Yes |
| `jobId` | `text` | Yes |

## Example answer

```json
{
  "data": {
    "ok": true,
    "jobId": "00000000-0000-4000-8000-000000000000"
  }
}
```

## Using it over MCP

Tool `messages_edit` is listed on the profiles: Real-time operations (`realtime`), Automation setup (`setup`), Discover (`prospecting`), Reports (`reports`), Administration (`admin`), Full (`full`). On other profiles, find it with `tools_search` and run it with `tools_run`.
