Actions26
- Сообщение Actions
- Чат Actions
- Участники чата Actions
- Бот Actions
- Callback Actions
- Видео Actions
Сообщение → Удалить
AI-generatedSummary
Deletes a message in the MAX messenger by its ID, sending a DELETE request to the MAX platform API. It runs once per input item.
Inputs
- messageId (required) — ID of the message to delete (for example, a value like mid.1234). It is sent as the message_id query parameter.
- deleteForAll — Boolean, default false. When true, the request adds for_all=true so the message is deleted for all chat participants. When false, the parameter is omitted.
Output shape
One output item per input item. Its json is the raw response body from the MAX API DELETE /messages call.
The source does not shape the response, so the content depends on the API. With 'Continue on Fail' enabled, a failed item returns {error: message} and execution continues. Otherwise the node throws. Requests are authenticated with the maxApi credential.
Examples
Example 1: Remove a bot's own message from a chat for everyone after a timeout.
messageId = {{ $json.message.body.mid }}, deleteForAll = true
Example 2: Delete a message only on the bot's side.
messageId set to the message ID, deleteForAll = false