Skip to content

IncomingMediaObject

Defined in: src/types/webhooks.ts:129

Media payload shared by image, video, audio, document, and sticker messages.

optional animated?: boolean

Defined in: src/types/webhooks.ts:148

Whether a sticker is animated (sticker).


optional caption?: string

Defined in: src/types/webhooks.ts:137

Optional caption (image, video, document).


optional filename?: string

Defined in: src/types/webhooks.ts:139

Original filename (document).


id: string

Defined in: src/types/webhooks.ts:131

Media ID used to download the asset via the media endpoint.


optional mime_type?: string

Defined in: src/types/webhooks.ts:133

MIME type of the media, e.g. image/jpeg.


optional sha256?: string

Defined in: src/types/webhooks.ts:135

SHA-256 hash of the media file.


optional url?: string

Defined in: src/types/webhooks.ts:146

Direct media URL. Meta is rolling this property out gradually, so it may be absent. Downloading it still requires your access token.


optional voice?: boolean

Defined in: src/types/webhooks.ts:141

Whether an audio message is a voice note (audio).

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.