This is an example implementation of adiwajshing/Baileys
This is a tool which you can use to validate WhatsApp numbers in bulk.
Note: This tool has only been tested using Indonesian phone numbers.
-
Clone this repo.
-
Enter the project repo.
-
Run
npm install
oryarn install
. -
Prepare a file in the root folder titled
numbers.txt
. Number format must be like country code and then the numbers, without any special character, e.g. 6281XXXXXXXXXXX -
Run
npm run start
oryarn start
depending on your package manager. -
Connect your WhatsApp account by scanning the QR code through your WhatsApp (first time only.)
-
Result will be stored in the root folder in a file titled
validNumbers.txt
.
-
Run
npm run create-dir
, this will create the folder of valid-numbers-to-check. -
Copy the validNumbers.txt to the folder of ./valid-numbers-to-check with the name of whatever you want for example using this command
cp validNumbers.txt ./valid-numbers-to-check/1st-place.txt
-
After putting the multiple files in the directory of
valid-numbers-to-check
you can runnpm run count
-
See the results of the phone number registered and unregistered count in the folder of results/