From 592e9acb55bd66d70bf570683aff790d5a2bdb64 Mon Sep 17 00:00:00 2001 From: rodrigorodriguez Date: Thu, 13 Oct 2022 23:12:27 -0300 Subject: [PATCH] new(whatsapp.gblib): Native provider works in groups now. --- packages/whatsapp.gblib/services/WhatsappDirectLine.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts index 32c8bcc7..a2b5b75c 100644 --- a/packages/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/packages/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -146,13 +146,6 @@ export class WhatsappDirectLine extends GBService { const createClient = async (browserWSEndpoint) => { - if (!browserWSEndpoint) { - const browser = await createBrowser(profilePath); - this.browserWSEndpoint = await browser.wsEndpoint(); - } - else { - this.browserWSEndpoint = browserWSEndpoint; - } let puppeteer: any = { headless: false, args: [ '--no-sandbox', @@ -212,7 +205,7 @@ export class WhatsappDirectLine extends GBService { GBServer.globals.minBoot.whatsAppDirectLine.sendFileToDevice(adminNumber, url, Path.basename(localName), msg); } - // The e-mail is sent to all bots. + // The e-mail is sent to all bot owners. const html = `

${msg}

` await s.sendEmail(adminEmail, `Check your WhatsApp for bot ${this.botId}`, html);