Max Message icon

Max Message

Send, read, update, and answer callbacks for MAX messages

Edit Message

AI-generated

Summary

Edits an existing MAX message by ID, replacing its text and optionally changing its format, link previews, inline keyboard, or attachments.

Inputs

  • Message ID (required) — ID of the message to edit.
  • New Message Text (required) — Replacement text, up to 4,000 characters.
  • Text Format — Format for the new text: Plain Text (default), HTML, or Markdown.
  • Disable Link Preview — Whether to suppress link previews in the edited text; defaults to false.
  • Inline Keyboard — Optional button rows to set on the message. Buttons support callback, clipboard, chat creation, link, message, app-opening, contact-request, and location-request actions, with fields depending on the selected type.
  • Clear Attachments — Whether to remove all current attachments, including inline keyboard buttons; defaults to false.

Output shape

A single API response record.

The provided source pack lists the edit implementation but omits its function body, so the exact response fields and how keyboard updates interact with existing attachments are not shown.

Links

Discussion