'Whatsapp Click to Chat sending an image instead of text
I want to send an image via the Whatsapp Click to Chat URL. Sending Text is easy.
https://wa.me/?text=LoremIpsum
When I click this link, it opens WhatsApp, and I can select which contact I want to send the message.
Now my question is, if its possible to also send an image through this URL. (maybe with an ?media=https://cdn.example.com/image.jpg parameter). The goal is to send an email to customers and let them click on a link so they can send an image from us to their friends.
Do I need WhatsApp Business for this? Or isn't it possible?
Thanks for any answer.
Solution 1:[1]
This is impossible with uri, but you can use Intents on android or use Navigator.share() method on webpages using javascript:
Android Intent: https://developer.android.com/training/sharing/send
Web Share: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/share
There are similar ways for other operating systems such as iOS, Windows, ...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | amir_a14 |