GREEN-API for WhatsApp icon

GREEN-API for WhatsApp

Send and receive WhatsApp messages using Green-API.

Receiving → Download a File

AI-generated

Summary

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.

Links

Discussion