Edit the contents of a message

Edits the contents of an existing message, and returns the edited message in full, exactly as a subsequent GET of the message would, carrying the server-set edited_at. Each field follows PATCH semantics: omit a field to leave it unchanged, or supply a value to replace it. An empty files list removes all attachments.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Globally unique identifier for a chat; a c- prefixed string.

string
required

Identifies a message within its enclosing chat; an m- prefixed string. Only meaningful in combination with a chat id.

Body Params

Parameters for editing an existing message. Each field follows PATCH semantics: omit a field to leave it unchanged, or supply a value to replace it. An empty files list removes all attachments.

files
array of objects

If present, the new set of attached files; an empty list removes all attachments.

files
body

The structured body of a message. Always has a discriminated content type indicating how clients should render it. Serialised with an @type discriminator. On send and edit only markdown and empty may be supplied; the remaining variants are response-only.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
application/problem+json