WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation clears messages in a specified chat session. It is useful for scenarios where you want to delete all messages from a particular chat, such as resetting a conversation or managing chat history. For example, in a customer support workflow, you might clear chat messages after a session ends to maintain privacy or reduce clutter.

Use Case Examples

  1. Clear all messages in a chat session identified by a session name and chat ID.
  2. Use batching options to control the rate of requests when clearing messages in bulk.

Properties

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

Output

JSON

  • success - Indicates whether the messages were successfully cleared.
  • clearedMessageCount - The number of messages that were cleared from the chat.

Dependencies

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

Troubleshooting

  • Ensure the session name and chat ID are correct and correspond to an existing chat session.
  • If requests time out, consider increasing the timeout setting or adjusting batching options to reduce request frequency.
  • If SSL certificate errors occur, enable the option to ignore SSL issues, but be aware of security risks.
  • Verify proxy settings if a proxy is required for network access.

Discussion