diff --git a/package-lock.json b/package-lock.json index c72b32d..371ede5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wbm", - "version": "1.1.11", + "version": "1.1.12", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 99ee214..4ece89e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ }, "name": "wbm", "description": "wbm is an API to send bulk messages in whatsapp.", - "version": "1.1.11", + "version": "1.1.12", "main": "src/index.js", "devDependencies": {}, "repository": { diff --git a/src/api.js b/src/api.js index 045c7c8..a06debb 100644 --- a/src/api.js +++ b/src/api.js @@ -150,8 +150,7 @@ async function sendTo(phoneOrContact, message) { process.stdout.write("Sending Message...\r"); await page.goto(`https://web.whatsapp.com/send?phone=${phone}&text=${encodeURIComponent(message)}`); await page.waitForSelector("div#startup", { hidden: true, timeout: 60000 }); - await page.waitForSelector('div[data-tab="1"]', { timeout: 5000 }); - + await page.waitForSelector('div[tabindex="-1"]', { timeout: 5000 }); await page.keyboard.press("Enter"); await page.waitFor(1000); process.stdout.clearLine();