Send video, audio, image, document
Endpoint for easy send media-file as message
Last updated
Was this helpful?
Endpoint for easy send media-file as message
Last updated
Was this helpful?
You can work with different types of files and it makes no difference what extension the document has. WhatsApp limits the sizes of files and its politics constantly changes and because of that we always recommend that you verify directly on WhatsAppβs website. In this you can find everything that you need to know about formatting and file sizing.
Your file needs to be specified in the mandatory "media"
parameter and there are four options here: UPLOAD FROM FILE, UPLOAD FROM URL, UPLOAD FROM BASE64 and send the file by its media id.
If you store the file locally, you will need to either upload it to the server or send it in Base64 format.
If you have a direct link to an image that is posted somewhere on the internet. It is important that it is the file that is accessible via the direct link.
In which case you will need to have a method in your application to convert the image to Base64. To make sure the conversion is successful, copy the generated base64 and paste it into your browser's address bar, if it is a valid image the browser will be able to display it, if the browser can't, check your method :)
You can also manually recode the file and specify the result in your application. To do this, you can use our handy tool to encode any file into Base64 format:
Via MediaID, in this case after automatically uploading the file to the cloud, you will get a media ID that you can use in the future.
The method is intended for sending a file uploaded through a form (form-data):
You can Send a ppt audio recording to the phone number or group, But WhatsApp is sensitive to this extension, you need to be in OGG format and the codecs should be the opus. Our API has an automatic video and audio converter for the necessary codecs compatible with WhatsApp. For more information, you can check out this .