GOWA icon

GOWA

Interact with Go WhatsApp Web MultiDevice API

Send → Send Media

AI-generated

Overview

This node operation allows sending media messages via the Go WhatsApp Web MultiDevice API. It supports sending different types of media such as images, audio, video, and files to a specified phone number or group ID. Users can upload media files from binary data or provide a URL for the media source. Additional options include adding captions, replying to specific messages, marking messages as forwarded, setting media to be viewed once, compressing media, and setting disappearing message duration.

Use Case Examples

  1. Sending an image file to a WhatsApp contact with a caption.
  2. Sending a video from a URL to a group chat with the option to view once.
  3. Uploading an audio file from binary data to a phone number with a reply to a previous message.

Properties

Name Meaning
Device ID Optional device ID override that takes priority over the credential device ID if set.
Phone or Group ID The phone number with country code or the group ID to which the media will be sent.
Media Type The type of media to send, such as image, audio, video, or file.
Media Source Determines whether the media is uploaded from binary data or sent via a URL. For files, only upload from binary data is supported.
Binary Property The name of the binary property containing the file to upload when media source is file upload.
Media URL The URL of the media to send when media source is URL.
Caption Caption text for the media message.
Reply to Message ID The message ID to which this media message is a reply.
Is Forwarded Indicates whether the message is forwarded.
View Once Indicates whether the media should be viewed only once (applicable for image and video).
Compress Indicates whether to compress the media (applicable for image and video).
Duration (Seconds) Duration in seconds for disappearing messages; 0 means no expiry.

Output

JSON

  • messageId - The ID of the sent media message
  • status - The status of the send operation, e.g., success or failure
  • timestamp - The timestamp when the message was sent

Dependencies

  • Go WhatsApp Web MultiDevice API
  • An API key credential for authentication

Troubleshooting

  • Ensure the device ID is correctly set or overridden if needed, as an incorrect device ID can cause message sending failures.
  • Verify that the phone number or group ID is valid and correctly formatted with the country code.
  • When sending media via URL, ensure the URL is accessible and points to a valid media file.
  • If uploading a file, confirm that the binary property name matches the actual binary data property in the input.
  • Check for permission or quota limits on the Go WhatsApp Web MultiDevice API that might block sending messages.
  • Common error messages may include invalid device ID, invalid phone number/group ID, unsupported media type, or network errors. Resolving these involves verifying input parameters and API connectivity.

Discussion