Actions69
- App Actions
- Chat Actions
- Device Actions
- Group Actions
- Add Participant
- Approve Participant Request
- Create Group
- Demote Participant
- Export Group Participants
- Get Group Info
- Get Group Info From Link
- Get Group Invite Link
- Get Group Participants
- Get Participant Requests
- Join Group With Link
- Leave Group
- Promote Participant
- Reject Participant Request
- Remove Participant
- Set Group Announce Mode
- Set Group Locked Status
- Set Group Name
- Set Group Photo
- Set Group Topic
- Message Actions
- Newsletter Actions
- Send Actions
- User Actions
Send → Send Media
AI-generatedOverview
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
- Sending an image file to a WhatsApp contact with a caption.
- Sending a video from a URL to a group chat with the option to view once.
- 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 messagestatus- The status of the send operation, e.g., success or failuretimestamp- 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.