pranavms13 / whatsapp-node-api

A Simple NodeJS API Wrapper for WhatsApp
Other
471 stars 184 forks source link

Proposal for media content such as images and files. #44

Closed kaoecoito closed 2 years ago

kaoecoito commented 2 years ago

This option creates an attachmentData property in the message with the content of the media download, allowing the content to be received and processed at the endpoint configured as webhook.

The property looks like this.

"attachmentData": {
    "mimetype": ...,
    "data": base64 content,
    "filename": optional filename
}