Spaces:
Building
Building
Update index.js
Browse files
index.js
CHANGED
@@ -31,7 +31,7 @@ async function connectWhatsApp() {
|
|
31 |
|
32 |
// Request pairing code if not registered
|
33 |
if (!sock.authState.creds.registered) {
|
34 |
-
const phoneNumber = '+
|
35 |
try {
|
36 |
const code = await sock.requestPairingCode(phoneNumber);
|
37 |
console.log(`Pairing Code: ${code}`);
|
|
|
31 |
|
32 |
// Request pairing code if not registered
|
33 |
if (!sock.authState.creds.registered) {
|
34 |
+
const phoneNumber = '+919709769655'; // Replace with your WhatsApp number
|
35 |
try {
|
36 |
const code = await sock.requestPairingCode(phoneNumber);
|
37 |
console.log(`Pairing Code: ${code}`);
|