DEV Community

Discussion on: Announcing the Twilio Hackathon on DEV

Collapse
 
instinct profile image
Instinct

Can't we send a local file using Twilio Whatsapp API?
If not, please suggest some workarounds.
If yes, please do tell how to do so.

Collapse
 
philnash profile image
Phil Nash

To send files through the Twilio API for WhatsApp you need to be able to host those files somewhere. When you send a message with a file you need to pass a URL to the API. If you are doing this locally, you could make the files available with a web server on your machine and a tunnel like ngrok that can create a URL that points at your local machine.