Get the media of a WhatsApp message
get_mediaRetrieve and save media from a WhatsApp message, including audio transcripts, photos, or files, to a specified directory.
Instructions
What a message's media holds: a voice note or audio as its transcript (kept once made; an API provider bills it), or with save_to its file; a photo attached as an image; any file saved at path on the machine running wazap. MEDIA_UNAVAILABLE: WhatsApp no longer has it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to | No | Absolute directory; default <data-dir>/media. A recording: its file, and no new transcript | |
| language | No | What is spoken, e.g. "ro" | |
| account_id | No | Account id | |
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | ||
| path | No | ||
| size | No | ||
| type | Yes | ||
| sender | Yes | ||
| caption | Yes | ||
| filename | No | The name it was saved under | |
| account_id | Yes | ||
| message_id | Yes | ||
| transcript | No | ||
| image_attached | No | The photo, or a small preview of it, is attached | |
| original_filename | Yes | ||
| transcript_unavailable | No |