MegaAPI icon

MegaAPI

Interact with MegaAPI WhatsApp service

Group → Send Media URL Group

AI-generated

Overview

This node operation sends a media file from a publicly accessible URL to a specified WhatsApp group. It is useful for sharing documents, images, videos, audio files, or voice messages directly to a group chat on WhatsApp. For example, a user can send a PDF report, an image, or a video link to a project group for collaboration or information sharing.

Use Case Examples

  1. Sending a PDF document to a team group for review.
  2. Sharing an image URL to a family group chat.
  3. Distributing a video file link to a class group.

Properties

Name Meaning
Group JID The WhatsApp Group JID (Group ID) to send the media to, formatted as group_id@g.us (e.g., 123456789545@g.us). This identifies the target WhatsApp group.
Media URL The URL of the media file to send to the WhatsApp group. The URL must be publicly accessible.
File Name The name of the file as it will appear in WhatsApp when sent to the group.
Media Type The type of media to send, such as audio, document, image, voice message (PTT), or video.
MIME Type The MIME type of the media file, specifying the file format such as PDF, JPEG, MP4, etc.
Caption Optional caption text to accompany the media file when sent to the group.

Output

JSON

  • messageId - The unique identifier of the sent message in the WhatsApp group.
  • status - The status of the message delivery (e.g., sent, delivered, read).
  • deliveryConfirmation - Confirmation details about the message delivery to group members.

Dependencies

  • Requires an API key credential for MegaAPI WhatsApp service authentication.

Troubleshooting

  • Ensure the Group JID is correctly formatted and that the user is a member of the group.
  • Verify that the media URL is publicly accessible and not behind authentication or firewalls.
  • Check that the MIME type matches the actual media file format to avoid sending errors.
  • Common error messages may include invalid group ID, inaccessible media URL, or unsupported media type. Verify input parameters accordingly.

Discussion