WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation allows users to preview messages from a specified channel in a messaging or communication platform. It is useful for scenarios where users want to fetch and review recent messages from a channel without joining or interacting with it directly. For example, it can be used to monitor channel activity, perform content analysis, or archive messages.

Use Case Examples

  1. Preview the last 100 messages from a marketing channel to analyze customer feedback.
  2. Fetch recent messages from a support channel to review ongoing customer issues.

Properties

Name Meaning
Session The session name used to authenticate and identify the user session for accessing the channel.
Id The unique identifier or invite code of the channel from which to preview messages.
Download Media Flag indicating whether to download media files attached to the messages.
Limit The maximum number of messages to retrieve from the channel.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and timeout settings.

Output

JSON

  • messages - Array of message objects retrieved from the channel preview.
  • channelId - The ID of the channel from which messages were previewed.
  • mediaDownloaded - Indicates if media files were downloaded along with the messages.

Dependencies

  • Requires an API key or session authentication to access channel messages.

Troubleshooting

  • Ensure the session name is valid and active to avoid authentication errors.
  • Verify the channel ID or invite code is correct to prevent 'channel not found' errors.
  • If media download is enabled, check network connectivity and storage availability.
  • Adjust timeout settings if requests frequently time out due to slow server response.
  • If using a proxy, ensure proxy credentials and URL are correctly configured.

Discussion