Sign inGet started

bird whatsapp media

Usage

代码示例
bird whatsapp media <message-id> <media-id> [flags]

Description

Download the media on a received WhatsApp message — an image, video, audio clip, sticker or document. The media id is the id on the message's content object, which bird whatsapp get returns.
The bytes are written to --output when set, otherwise to stdout:
bird whatsapp media wam_123 waf_456 --output photo.jpg
--url prints the short-lived download URL (valid for 15 minutes) instead of downloading, for handing to another tool. That URL is pre-authorized and needs no Authorization header; the follow-up request must not send one. --url and --output cannot be combined.
Media is kept for 30 days after the message arrives; after that the message still lists the media's mime_type and caption, and this exits with a gone error.

Examples

代码示例
bird whatsapp media <message-id> <media-id> --output photo.jpg

Options

NameDescription
--output, -oWrite the bytes to this file instead of stdout
--urlPrint the short-lived download URL instead of downloading
NameDescription
bird whatsapp getGet a WhatsApp message
bird whatsapp listList WhatsApp messages
bird whatsapp list-eventsList events for a WhatsApp message
bird whatsapp sendSend a WhatsApp message to one recipient