Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noriste/whatsapp-messages-batch
An easy way to write WhatsApp messages in advance and batch 'em all
https://github.com/noriste/whatsapp-messages-batch
automation puppeteer whatsapp
Last synced: 2 months ago
JSON representation
An easy way to write WhatsApp messages in advance and batch 'em all
- Host: GitHub
- URL: https://github.com/noriste/whatsapp-messages-batch
- Owner: NoriSte
- Created: 2018-12-19T06:03:23.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T13:03:09.000Z (about 2 years ago)
- Last Synced: 2024-10-27T13:51:22.265Z (2 months ago)
- Topics: automation, puppeteer, whatsapp
- Language: JavaScript
- Homepage:
- Size: 538 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# whatsapp-messages-batch
# Write your messages in advance and batch 'em all
- [x] groups support
- [x] emojis support
- [x] naver-chatted contacts support
- [x] multiline messages support
- [x] test it without send any message
- [x] summary of unsent messagesdisclaimer: I've used it for a hundred Xmas greetings and everything worked well 😊
Before starting:
- open `messages.js`
- `$ yarn start` to send the messages
- you can test my script without really sending messages, set `TEST_SAFELY` in `config.js` to true
- open `config.js` and set the `findInputTitle` string, it's the content of the "Search or start a new chat input field"
![Alt text](input.jpg?raw=true "Input field")# FAQ
### Why did you create it?
Because I love to send Xmas greetings but on Dec 25th I can't spend an hour writing and sending them.
### ... So?
So I write all the messages in advance and on Dec 25th I'm going to launch this script.
### How it works?
It uses [Puppeteer](https://github.com/GoogleChrome/puppeteer) to open up the WhatsApp web UI and write/send the messages for you.
### Nice, should I already chatted with the contacts I'd like to send messages?
No, it works also with contacts you never chatted with.
### Does it support multiline messages?
Yes, every line will be sent as a saperate message.
### Does it support emojis?
Obviously...
### Does it work for groups too?
Yep.
### Can I test your script before sending all the messages?
Yep, open `config.js` and set `TEST_SAFELY` to `true`
### What happens if mystiped the name of a contact?
Nothing happens, the script needs to match exactly the contact name, otherwise it does nothing.
### Why it doesn't find the contact to chat with?
Because it's case and emoji sensitive, the contact name must 100% match the correct one.
### And how can I fix it?
Don't worry, every unsent message is console.logged
### What can I configure?
Look at the `config.js` file.
### How can I set the messages to send?
Look at the `messages.js` file.
### How can I send them?
`$ yarn start`