Actions35
- Chat Actions
- Chatwoot Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Instance → Download Media Message
AI-generatedOverview
This node operation downloads media content from a WhatsApp message using the provided media key, direct path, URL, mimetype, and message type. It is useful for retrieving media files such as images, audio, video, or documents sent or received in WhatsApp messages.
Use Case Examples
- Downloading an image sent in a WhatsApp chat to save it locally or process it further.
- Retrieving an audio message from WhatsApp for transcription or analysis.
- Fetching a video file from a WhatsApp message to share or archive it.
Properties
| Name | Meaning |
|---|---|
| Media Key | The media key for the message, used to authenticate and access the media content. |
| Direct Path | The direct path for the media, specifying the location of the media file on the server. |
| URL | The URL for the media, used to download the media content from the WhatsApp service. |
| Mimetype | The mimetype of the media (e.g., image/jpeg, audio/mp3, video/mp4, application/pdf), indicating the type of media file. |
| Message Type | The type of media message to download, such as image, audio, video, or document. |
Output
JSON
mediaContent- The downloaded media content from the WhatsApp message, typically in a binary or encoded format.mediaType- The type of the media downloaded, matching the message type input.mediaUrl- The URL from which the media was downloaded.
Dependencies
- Requires an API key credential for MegaAPI WhatsApp service to authenticate and authorize media download requests.
Troubleshooting
- Ensure the media key, direct path, and URL are correctly provided and valid; incorrect values will cause download failures.
- Verify that the API token or credentials are correctly configured and have sufficient permissions to access media content.
- Common error messages include authentication failures, invalid media keys, or network errors; resolving these involves checking credentials, input parameters, and network connectivity.
Links
- MegaAPI WhatsApp Media Download Documentation - Official documentation for downloading media messages using MegaAPI WhatsApp service.