whatsapp-auto-messenger
Computer will send messages to your friend on WhatsApp Web automatically at fixed interval (e.g. after every 5mins) while you sleep and have good dream(s).
How does it work?
- You define your messages into Java class.
- You open https://web.whatsapp.com/ and choose your best friend.
- You open a terminal and compile + run Java class.
- You go to sleep and have nice dreams.
- On morning, your friend gets crazy :p
😂
You got excited??
- Clone this Repository / Download zip
- Open terminal (Ctrl + Alt + T)
- Type
cd /path/to/repository
- Edit WhatsappAutoMessenger.java to define your messages (or you can test without editing)
vi WhatsappAutoMessenger.java
- Compile this class
javac WhatsappAutoMessenger.java
- Run it
java WhatsappAutoMessenger
- You can see your messages being typed on terminal (as per delay and repeat interval defined by you)
- Go to https://web.whatsapp.com/ and choose your friend
- Click on 'Type a message' input div (so that it achieves focus)
- See the magic
😈
To see working demo on youtube watch this video:
Screenshots (Whatsapp side navigation bar is hidden)
How did I make it
We can send whatsapp message from Android app or from whatsapp web. Making an automatic-message-sender Android app seemed
a lot of work to me. So I chose second way
Since all I had to do is simulation, I can also do it on OS Level. I chose Java for it. I used java.awt.Robot
class
for this purpose and this was my 2nd working approach. See Video to feel it.
What's next?
You can make a chatbot which will be able to respond to incoming messages wisely.
Update
Whatsapp (Facebook) has recently released (02 August 2018) official support for Chat Integration via Whatsapp Business API. Please visit-