bileyes
v0.1.16
Published
WhatsApp CLI
Downloads
6
Readme
Bileyes
Send WhatsApp messages from the command-line.
Installation
Using npx
, installation is not necessary. You can run Bileyes on a system
with NodeJS 16 or higher from the command-line as follows:
npx bileyes
Usage
Available commands and options can be listed with --help flag
npx bileyes --help
for most command it's necessary that you've authorized Bileyes to interact with the WhatsApp API on your behalf. This can be done by logging in as described below.
Login
To login you need to authorize Bileyes from another device that has WhatsApp installed and scan the QR code using the link provided in the terminal.
npx bileyes login
In the WhatsApp mobile app go to "Settings > Connected Devices > Connect Device" and scan the QR code.
Wait until the status is "active", then you can exit Bileyes.
Logout
Logging out removes credentials from your local environment but will not disconnect Bileyes from your WhatsApp account, you can disconnect Bileyes using the WhatsApp app
npx bileyes logout
Different types of recipients
Bileyes supports three types of recipients for sending messages/images/files/etc.
An international phone number (e.g.: 3161234567890)
A so-called WhatsApp ID, for example a group ID: [email protected]
Sending a message to yourself or a phone number
Using the recipient me you can send yourself a test message:
npx bileyes send me 'Hello From Bileyes!'