Using Click to Chat
WhatsApp's Click to Chat feature allows you to begin a chat with someone without having their phone number saved in your phone's address book. As long as you know this person’s phone number, you can create a link that will allow you to start a chat with them. By clicking the link, a chat with the person automatically opens. Click to Chat works on both your phone and WhatsApp Web.
To create your own link, use
https://wa.me/<number>
where the <number>
is a full phone number in international format. Omit any zeroes, brackets or dashes when adding the phone number in international format. For a detailed explanation on international numbers, read this article. Please keep in mind that this phone number must have an active account on WhatsApp.
Use:
https://wa.me/918904652515
Don't use:
https://wa.me/+91-8904652515
To create your own link with a pre-filled message that will automatically appear in the text field of a chat, use
https://wa.me/whatsappphonenumber/?text=urlencodedtext
where whatsappphonenumber
is a full phone number in international format and URL-encodedtext
is the URL-encoded pre-filled message.
Example:
https://wa.me/
918904652515
?text=I'm%20interested%20in%20your%20car%20for%20sale
To create a link with just a pre-filled message, use
https://wa.me/?text=urlencodedtext
Example:
https://wa.me/?text=I'm%20inquiring%20about%20the%20apartment%20listing
After clicking on the link, you will be shown a list of contacts you can send your message to.
OR Else
https://whatshelp.io/widget
OR Else
<?php
// Fix Api Whatsapp on Desktops // Dev: Jean Livino
$iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); $android = strpos($_SERVER['HTTP_USER_AGENT'],"Android"); $palmpre = strpos($_SERVER['HTTP_USER_AGENT'],"webOS"); $berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry"); $ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");
// check if is a mobile if ($iphone || $android || $palmpre || $ipod || $berry == true) { header('Location: https://api.whatsapp.com/send?phone=918904652515&text=Hi'); //OR echo "<script>window.location='https://api.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT'</script>"; }
// all others else { header('Location: https://web.whatsapp.com/send?phone=918904652515&text=Hi'); //OR echo "<script>window.location='https://web.whatsapp.com/send?phone=YOURNUMBER&text=YOURTEXT'</script>"; } ?>
EX
- A Change where “Mobile Number” is by its number in the following format 918904652515, without the “+” and “()”..
- Replace the text “Hi” with what you want the person to send by changing the space for “+”. Ex. “Hello”
- Save the file named index.php and upload it to your server.
https://whatshelp.io/widget