Max icon

Max

Interact with the MAX Bot API

Message → Answer Callback

AI-generated

Summary

Send an answer to a callback identified by its Callback ID, optionally showing a one-time notification to the user and updating the message with new text, formatted in HTML or Markdown, and optional attachments or links.

Inputs

  • Callback ID (required) — The identifier of the callback to answer, as returned by MAX.
  • Notification — Optional one-time notification text to show to the user for the callback answer.
  • Text — Text content to update the callback message with.
  • Format — Format of the text content; can be 'html' or 'markdown'. Defaults to 'markdown'.
  • Additional Fields — Optional settings including attachments (JSON), link (JSON), notification flag for recipient, and retry settings for attachments.

Output shape

a list of JSON objects representing the API response from answering the callback, including normalized fields such as messageId, sequence, text, chatId, userId, chatType, and senderId.

Per-item API calls with retry logic for attachments; errors handled per item with option to continue on failure.

Examples

Example 1: Answer a callback with a notification and updated markdown text

Set Callback ID parameter with the callback identifier, enter notification text to show the user, update Text content to the desired markdown message, choose Format 'markdown', optionally add attachments JSON, and execute.

Links

Discussion