whatsapp-web.js
A WhatsApp API client that connects through the WhatsApp Web browser app
It uses Puppeteer to run a real instance of Whatsapp Web to avoid getting blocked.
NOTE: I can't guarantee you will not be blocked by using this method, although it has worked for me. WhatsApp does not allow bots or unofficial clients on their platform, so this shouldn't be considered totally safe.
Installation
The module is now available on npm! npm i whatsapp-web.js
Please note that Node v10.18.1+ is required due to Puppeteer.
+Please note that Node v14+ is required.
Example usage
const { Client } = require('whatsapp-web.js');
const client = new Client();
@@ -537,6 +537,11 @@ client.initialize();
-
+ -
+ Client#
acceptGroupV4Invite(inviteV4)
+
+ -
+
-
Client#
acceptInvite(inviteCode)
@@ -706,15 +711,15 @@ client.initialize();
-
-
-