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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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.