Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 months ago
JSON representation

An easy way to write WhatsApp messages in advance and batch 'em all

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 messages

disclaimer: 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`