polymorfa media
Inspect, download, and persist Messaging media.
polymorfa media download
Download Messaging media to a local file, print its signed link, or decrypt it from a stored webhook event.
Usage
polymorfa media download [MEDIA] [flags]Examples
polymorfa media download media_123 --output ./attachment.binpolymorfa media download media_123 --urlpolymorfa media download --from-event ./message.json -o ./photo.jpgArguments
MEDIAoptionalMessaging media ID. Omit it when using --from-event.
Flags
--forcebooleanOverwrite an existing output file.
--from-event <value>takes a valueDecrypt media from the WhatsApp CDN using a stored message webhook JSON file. The file contains a decryption key.
--max-bytes <value>takes a valueMaximum bytes to download.
Default104857600-o, --output <value>takes a valueDestination file path.
--urlbooleanPrint the short-lived signed download link to stdout instead of downloading.
Also accepts the global flags.
polymorfa media persist
Persist Messaging media to server storage.
Usage
polymorfa media persist MEDIA [flags]Arguments
MEDIArequiredMessaging media ID.
Flags
--idempotency-key <value>takes a valueSafely identify retries of this persistence request.
Also accepts the global flags.
polymorfa media view
View Messaging media metadata.
Usage
polymorfa media view MEDIA [flags]Arguments
MEDIArequiredMessaging media ID.
Flags
Also accepts the global flags.