Actions26
- Сообщение Actions
- Чат Actions
- Участники чата Actions
- Бот Actions
- Callback Actions
- Видео Actions
Сообщение → Отправить текст
AI-generatedSummary
Sends a text message to a MAX messenger user or chat via POST /messages, optionally with inline keyboard buttons, formatting, reply reference and silent delivery.
Inputs
- userId (required) — Recipient ID. A value starting with '-' is sent as chat_id (group/channel); otherwise as user_id (personal chat).
- text (required) — Message text.
- addButtons — Enable inline keyboard. When on, shows Button mode.
- buttonMode — 'simple' (visual rows of buttons) or 'json' (raw keyboard array).
- buttons — Simple mode: rows of buttons. Each button has text and type (callback, link, request_contact, request_geo_location, message). Callback type uses callback data as payload, link uses url, message uses payload text. Empty rows are skipped.
- inlineKeyboard — JSON mode: array of rows of button objects, e.g. [[{"type":"callback","text":"...","payload":"..."}]]. Must be valid JSON or the item errors.
- additionalOptions — Optional collection: format (markdown/html), replyToMessageId, disableLinkPreview, silentMessage (sent as notify=false).
Output shape
One output item per input item, containing the JSON response from the MAX API for the created message.
Retries up to 5 times with increasing delay if the API reports an attachment-not-ready error; other errors are thrown. With Continue On Fail enabled, a failed item outputs { error: message } instead.
Examples
Example 1: Notify a group chat of a new order
userId = -70931657203722, text = 'Новый заказ #{{$json.id}}', additionalOptions: silentMessage on
Example 2: Send a message with a confirm link button to a user
userId = 12345, text set, addButtons on, buttonMode simple, one row with a link button (text 'Открыть', url)
Example 3: Reply to a specific message with HTML formatting
userId = chat ID, text = 'Готово', additionalOptions: format html, replyToMessageId = mid.1234