androidapi_send_whatsapp
Send a single WhatsApp message to one recipient, supporting text, media, and document attachments via URL.
Instructions
Send a single WhatsApp message to one recipient. Supports text, media (image/audio/video), and document attachments via URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Message type (default: text). | |
| account | Yes | WhatsApp account unique ID. Get from androidapi_get_wa_accounts. | |
| message | Yes | Message text or caption. Spintax supported. | |
| priority | No | 1 = send immediately, 2 = normal queue. | |
| media_url | No | [media] Direct URL to image, gif, mp4, mp3, or ogg. | |
| recipient | Yes | Recipient phone (E.164) or WhatsApp group address. | |
| shortener | No | URL shortener ID. | |
| media_type | No | [media] Required with media_url. | |
| document_url | No | [document] Direct URL to pdf/xls/xlsx/doc/docx/xml. | |
| document_name | No | [document] Filename with extension, e.g. report.pdf. | |
| document_type | No | [document] Required with document_url. |