---
title: "Edit message"
method: PATCH
path: "/v1/inbox/conversations/{conversationId}/messages/{messageId}"
tags: ["Messages"]
---

# Edit message

`PATCH /v1/inbox/conversations/{conversationId}/messages/{messageId}`

Edit the text and/or reply markup of a previously sent Telegram message.
Only supported for Telegram. Returns 400 for other platforms.

## Path parameters

- `conversationId` string, required
- `messageId` string, required

## Request body

- object
  - `accountId` string, required — Social account ID
  - `text` string — New message text
  - `replyMarkup` object — New inline keyboard markup
    - `type` 'inline_keyboard'
    - `keyboard` array[]
      - object[]
        - `text` string
        - `callbackData` string
        - `url` string

## Response `200`

Message edited

- object
  - `success` boolean
  - `data` object
    - `messageId` integer

## Other responses

- `400` — Not supported or invalid request
- `401` — Unauthorized
- `403` — Inbox addon required

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/versions/51932b099b2f/schema)
