MediaInfo
Defined in: src/types/media.ts:45
Typed, camelCase metadata for a media object (from GET /{mediaId}).
Properties
Section titled “Properties”fileSize
Section titled “fileSize”fileSize:
number
Defined in: src/types/media.ts:58
Size of the media in bytes.
id:
string
Defined in: src/types/media.ts:47
The media id.
messagingProduct
Section titled “messagingProduct”messagingProduct:
string
Defined in: src/types/media.ts:60
Messaging product the media belongs to (always whatsapp).
mimeType
Section titled “mimeType”mimeType:
string
Defined in: src/types/media.ts:54
MIME type of the stored media, e.g. image/jpeg.
sha256
Section titled “sha256”sha256:
string
Defined in: src/types/media.ts:56
SHA-256 checksum of the media contents.
url:
string
Defined in: src/types/media.ts:52
Short-lived, authenticated download URL. It expires quickly and must be
fetched with the Authorization: Bearer token.
Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.