Comparing version 1.1.10 to 1.1.11
@@ -10,3 +10,3 @@ { | ||
"description": "wbm is an API to send bulk messages in whatsapp.", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"main": "src/index.js", | ||
@@ -16,3 +16,4 @@ "devDependencies": {}, | ||
"type": "git", | ||
"url": "git+https://github.com/Briuor/wbm.git" | ||
"url": "git+https://github.com/Briuor/wbm.git", | ||
"directory": "packages/wbm" | ||
}, | ||
@@ -19,0 +20,0 @@ "keywords": [ |
@@ -24,3 +24,5 @@ const puppeteer = require("puppeteer"); | ||
userDataDir: tmpPath, | ||
args: ["--no-sandbox"] | ||
args: ["--no-sandbox", | ||
// "--blink-settings=imagesEnabled=false"] | ||
] | ||
} | ||
@@ -150,3 +152,3 @@ try { | ||
process.stdout.write("Sending Message...\r"); | ||
await page.goto(`https://web.whatsapp.com/send?phone=${phone}&text=${encodeURI(message)}`); | ||
await page.goto(`https://web.whatsapp.com/send?phone=${phone}&text=${encodeURIComponent(message)}`); | ||
await page.waitForSelector("div#startup", { hidden: true, timeout: 60000 }); | ||
@@ -153,0 +155,0 @@ await page.waitForSelector('div[data-tab="1"]', { timeout: 5000 }); |
79664
242