Overview
Replaces the text of a text message your channel already sent. The recipient sees the new text in place of the old one, with the app’s edited mark. No new message is sent.channelId: the channel that sent the message.messageId: themessageIdreturned by the send. Thecontents[].identifierreceived in the webhook is also accepted.
Request body
422 MESSAGE_NOT_EDITABLE.
Response
200 with the edited message’s messageId:
200 confirms the edit was accepted and forwarded to the channel, not that the contact’s app already shows the new text. If the channel refuses it later (for example, the contact blocked the bot on Telegram or the message was deleted), the contact’s text does not change and the API sends no notice of that refusal.
Errors
Handle refusals by
subCode. The message text may change. The error body format is in Send errors.
Editing through the send endpoint
A send (POST /v1/channels/{channelId}/messages) with content.body.editMessageId is also handled as an edit of the given message, with the same rules and refusals as this page. It never sends a new message. Prefer the PUT, which makes the intent explicit.
Limitations by channel
On Telegram, a text over 4,096 characters also gets
200, but Telegram refuses the edit and the contact’s text does not change. Keep edits within that limit.