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

This commit is contained in:
rodrigorodriguez 2022-10-14 11:22:08 -03:00
parent 592e9acb55
commit a748cb274d

View file

@ -218,8 +218,7 @@ export class WhatsappDirectLine extends GBService {
});
client.on('ready', async () => {
const page = (await client.pupBrowser.pages())[0];
await page.close();
client.pupBrowser.on('disconnected', (async () => {
GBLog.info(`Browser terminated. Restarting ${this.min.botId} WhatsApp native provider.`);
await (createClient.bind(this))(null);