waha_send_media
Send media files like images, videos, or documents to WhatsApp chats using URL or base64 data. Specify chat ID, media type, and MIME type to deliver files with optional captions or replies.
Instructions
Send media files (images, videos, or documents) to a WhatsApp chat. Supports URL or base64 data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chatId | Yes | Chat ID (format: number@c.us) | |
| mediaType | Yes | Type of media to send | |
| fileUrl | No | URL of the file to send (use either fileUrl or fileData, not both) | |
| fileData | No | Base64 encoded file data (use either fileUrl or fileData, not both) | |
| mimetype | Yes | MIME type of the file (e.g., 'image/jpeg', 'video/mp4', 'application/pdf') | |
| filename | No | Optional filename for the media | |
| caption | No | Optional caption for the media | |
| replyTo | No | Optional message ID to reply to |