IncomingMediaObject
Defined in: src/types/webhooks.ts:129
Media payload shared by image, video, audio, document, and sticker messages.
Properties
Section titled “Properties”animated?
Section titled “animated?”
optionalanimated?:boolean
Defined in: src/types/webhooks.ts:148
Whether a sticker is animated (sticker).
caption?
Section titled “caption?”
optionalcaption?:string
Defined in: src/types/webhooks.ts:137
Optional caption (image, video, document).
filename?
Section titled “filename?”
optionalfilename?: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.
mime_type?
Section titled “mime_type?”
optionalmime_type?:string
Defined in: src/types/webhooks.ts:133
MIME type of the media, e.g. image/jpeg.
sha256?
Section titled “sha256?”
optionalsha256?:string
Defined in: src/types/webhooks.ts:135
SHA-256 hash of the media file.
optionalurl?: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.
voice?
Section titled “voice?”
optionalvoice?: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.