N8nFront icon

N8nFront

Отправка сообщений и файлов через N8nFront Bot API

Удалить сообщение

AI-generated

Summary

Delete a message in a chat by specifying its chat ID and message ID.

Inputs

  • Chat ID (required) — The unique identifier of the chat containing the message to delete. Typically obtained from a trigger with expression {{ $json.message.chat.id }}.
  • Message ID (required) — The identifier of the message to delete within the specified chat. Typically obtained from a trigger with expression {{ $json.message.message_id }}.

Output shape

a single JSON object containing the API response from the delete message request

The operation returns the full JSON response from the N8nFront Bot API's deleteMessage endpoint, indicating success or failure of the message deletion.

Examples

Example 1: Deleting a message by chat and message ID

Set 'Chat ID' and 'Message ID' using values from an incoming message trigger to delete that message in the chat.

Links

Discussion