WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node sets the presence status for a chat session in a messaging application. It allows users to specify the session name, the chat ID (which can be a group or contact ID), and the presence status such as offline, online, typing, recording, or paused. This is useful for indicating user activity or availability in real-time communication scenarios, such as showing when a user is typing or currently online.

Use Case Examples

  1. Setting a user's presence to 'typing' while they compose a message.
  2. Marking a user as 'offline' when they log out.
  3. Indicating 'recording' status during a voice message recording.

Properties

Name Meaning
Session The name of the session to set presence for.
Chat Id The chat identifier, which can be either a group ID or a contact ID, to specify where the presence status applies.
Presence The presence status to set, such as offline, online, typing, recording, or paused.
Request Options Additional options for the request such as batching, SSL certificate handling, proxy settings, and timeout configuration.

Output

JSON

  • chatId - The chat identifier for which the presence was set.
  • presence - The presence status that was set.
  • session - The session name associated with the presence status.

Dependencies

  • Requires an API key credential or authentication token to connect to the messaging service.

Troubleshooting

  • Ensure the chat ID is valid and corresponds to an existing contact or group.
  • Verify that the session name is correctly specified and active.
  • Check network connectivity and proxy settings if requests fail.
  • If SSL errors occur, consider enabling the option to ignore SSL issues, but be aware of security risks.
  • Timeout errors may require increasing the timeout setting in request options.

Discussion