How to send WhatsApp Documents with the API

You can easly send Documents with the TextMeBot API using the following URL:

https://api.textmebot.com/send.php?recipient=[phone number]&apikey=[your apikey]&document=[url of document]

You can optionally add the following parameters:

&test=[Text to show below the document]
&filename=[Filename to show in the whatsapp message]
&json=[yes/no] to receive the response in json format