send_file
Send pictures, raw audio, video, or documents via WhatsApp to a phone number or group JID by specifying the recipient and absolute file path.
Instructions
Send a file such as a picture, raw audio, video or document via WhatsApp to the specified recipient. For group messages use the JID.
Args:
recipient: The recipient - either a phone number with country code but no + or other symbols,
or a JID (e.g., "123456789@s.whatsapp.net" or a group JID like "123456789@g.us")
media_path: The absolute path to the media file to send (image, video, document)
Returns:
A dictionary containing success status and a status message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recipient | Yes | ||
| media_path | Yes |