WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Message → Download Media

AI-generated

Summary

Download media attached to a WhatsApp message.

Inputs

  • sessionId (required) — Session identifier. Select from the list or use an expression. Falls back to credentials default if empty.
  • chatId (required) — The chat ID that contains the message
  • messageId (required) — Unique WhatsApp identifier for the message

Output shape

binary media data (raw file bytes) returned as a file content or base64-encoded payload

The operation returns the downloaded media file; no pagination or metadata envelope is provided. If the message has no media, the API may return an error.

Examples

Example 1: Download the attachment from a given message

sessionId from credentials, chatId = $json.chatId, messageId = $json.messageId

Links

Discussion