WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation deletes a specific message from a chat session. It is useful in scenarios where you need to programmatically remove messages from a chat, such as moderating content, correcting errors, or managing chat history. For example, you can automate the deletion of inappropriate messages in a customer support chat or remove outdated notifications.

Use Case Examples

  1. Deleting a message by specifying the session, chat ID, and message ID to keep the chat clean and relevant.
  2. Automating message removal in a chat application to comply with data retention policies.

Properties

Name Meaning
Session The name of the chat session from which the message will be deleted.
Chat Id The unique identifier of the chat containing the message to be deleted.
Message Id The unique identifier of the message to be deleted.
Request Options Additional options to control the request behavior, such as batching, SSL certificate validation, proxy settings, and timeout.

Output

JSON

  • success - Indicates whether the message deletion was successful.
  • messageId - The ID of the deleted message.
  • chatId - The ID of the chat from which the message was deleted.

Dependencies

  • Requires an API key or authentication token to access the chat service.

Troubleshooting

  • Ensure the session, chat ID, and message ID are correct and exist; otherwise, the deletion will fail.
  • Check network connectivity and proxy settings if requests time out or fail.
  • If SSL certificate validation fails and the option to ignore SSL issues is not enabled, the request will be rejected.

Discussion