whatsapp-chat-plugin
v1.0.1
Published
whatsapp chat HTML plugin to start conversation on whatsapp from website
Downloads
1
Maintainers
Readme
whatsapp-chat-plugin
Script
<script src="./whatsapp-chat-plugin/app.js">
//OR
<script src="https://raw.githubusercontent.com/rohitnairtech/whatsapp-chat-plugin/main/app.js">
How to use
> Create a <div> with id `wa-floating-chat` - ```<div id="wa-floating-chat"></div>```
> Import the script below the <div>
> Initate the object by passing in the whatsapp phone number and message (optional)
``` <script>createWhatsappChat('+918149712865', 'Hi there!')</script> ```
Example
<div id="wa-floating-chat"></div>
<script src="https://raw.githubusercontent.com/rohitnairtech/whatsapp-chat-plugin/main/app.js">
<script>
createWhatsappChat('+918149712865', 'Hi there!')
</script>
More improvements on the way.