0

I am having trouble sending a PDF file through WhatsApp with its file name. It is sent without the name regardless of where it is hosted, of the properties of the PDF, and everything I imagined.

I tried changing the hosting locations of the file (AWS/WordPress/Media libraries), I completed all metadata in PDF properties, and I still receive the files without its title. I also changed the files, and for every PDF I tried the problem was the same.

This is the code:

curl -X POST https://api.twilio.com/2010-04-01/Accounts/AC_XXXXXXX/Messages.json \
  --data-urlencode "To=whatsapp:+11111111" \
  --data-urlencode "From=whatsapp:+1111111" \
  --data-urlencode "Body=Menú de Kenko" \
  --data-urlencode "MediaUrl=https://gentl.s3-sa-east-1.amazonaws.com/kenko-menu.pdf" \
  -u 'AC_XXXXXXXX:AUTH_TOKEN'

Thank you in advance!

0 Answers0