MAX icon

MAX

Отправка сообщений и работа с API мессенджера MAX

Callback → Ответить и отправить сообщение

AI-generated

Summary

Answer a MAX inline-button callback by updating the original message or showing a notification, then send a separate text message to a user or chat.

Inputs

  • callbackQueryId (required) — Required callback request ID from the button click. Defaults to $json.event.callback_query_id.
  • callbackAction — Choose updateMessage (default) to replace the original message text, or notification to show a toast.
  • callbackText — Replacement text or notification text. Required and nonempty for notification; if empty in updateMessage mode, the callback is acknowledged with an empty notification instead of updating the message.
  • callbackUserId (required) — Required recipient ID for the separate message. IDs starting with '-' are sent as chat_id; others as user_id. Defaults to $json.event.user_id.
  • callbackMessageText (required) — Required text of the separate message sent after the callback answer succeeds.

Output shape

One JSON item per input item containing the message-send API response.

The callback-answer response is discarded; response fields are passed through without a defined schema. If sending fails, the callback may already have been answered. With Continue On Fail enabled, failures return an item containing an error string.

Links

Discussion