Actions46
- Account Actions
- Group Actions
- Journal Actions
- Queue Actions
- Receiving Actions
- Sending Actions
- Service Actions
- Status Actions
Receiving → Download a File
AI-generatedSummary
Download a file from a WhatsApp message.
Inputs
- chatId (required) — The WhatsApp chat ID (e.g., 79000000000@c.us) of the message containing the file.
- idMessage (required) — The ID of the message that contains the file to download.
Output shape
An object containing the file data returned by the Green-API (e.g., a URL or base64‑encoded content).
The operation runs per input item; each item must supply chatId and idMessage.
Examples
Example 1: Download a photo sent in a chat
Set chatId to the incoming message's chat ID and idMessage to the message's ID.