Max icon

Max

Interact with the MAX Bot API

Message → Edit

AI-generated

Summary

Edit an existing message identified by its Message ID by updating its text, formatting, attachments, link data, and notification behavior.

Inputs

  • Message ID (required) — The identifier of the message to update.
  • Text — The new message text content.
  • Format — Text formatting mode to apply, either HTML or Markdown.
  • Additional Fields — Optional parameters including attachments (JSON array), link (JSON object), notification flag, and attachment retry settings.

Output shape

a list of JSON objects where each contains the normalized response of the edit operation, including updated message ID, text, sequence number, chat/user identifiers, and sender information

Processes multiple input items in batch; retries sending attachments on attachment.not.ready errors using exponential backoff based on user-configured retry count and delay.

Examples

Example 1: Edit a message by specifying its Message ID, new text, format, and optional attachments.

Set resource to Message, operation to Edit, enter the Message ID, Text to update, choose Format, and optionally provide JSON-formatted Attachments or Link in Additional Fields.

Links

Discussion