You can send Images via WhatsApp using the following URL (GET method):
http://api.textmebot.com/send.php?recipient=[phone number]&apikey=[your premium apikey]&text=[text to send]&file=[url of image]
Example to send a test text message with an image to yourself. You can also send messages to others by changing the "recipient" parameter.
http://api.textmebot.com/send.php?recipient=+Not Set&apikey=ZCVuqVqzvN3M&text=This%20is%20a%20test&file=https://cdn.pixabay.com/photo/2021/09/25/05/25/robot-6654032__340.png
If you need the answer in JSON format, add &json=yes parameter at the end of the URL.
⚠️Warning⚠️ (please read and remember):
WhatsApp will block your number if you send messages to people who is not expecting to receive a message from you.🚨Disclaimer🚨 (please read and remember):
a) This API is inended for Personal Usage only. If you decide to use it for Business, it is at your own risk.