new(whatsapp.gblib): Native provider works in groups now.

This commit is contained in:
rodrigorodriguez 2022-10-13 23:12:27 -03:00
parent 2df29f689c
commit 592e9acb55

View file

@ -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 = `<P>${msg}</P><IMG src="${url}"/>`
await s.sendEmail(adminEmail, `Check your WhatsApp for bot ${this.botId}`, html);