Building your application
Handling Media
Learn how to handle media messages using the Wapi.js SDK
Officially Whatsapp supports uploading of media via API, getting Media Url from media Id and deleting the media. But the SDK as of now only supports the two features:
Getting media Url from media Id
You can get the media Url from media Id using the getMediaUrl
method available on the client class media manager. Here is an example of how you can get the media Url:
Deleting media
You can delete a media using the deleteMedia
method available on the client class media manager. Here is an example of how you can delete the media:
Was this page helpful?