new(whatsapp.gblib): Native provider works in groups now.
This commit is contained in:
parent
592e9acb55
commit
a748cb274d
1 changed files with 1 additions and 2 deletions
|
@ -218,8 +218,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
});
|
});
|
||||||
|
|
||||||
client.on('ready', async () => {
|
client.on('ready', async () => {
|
||||||
const page = (await client.pupBrowser.pages())[0];
|
|
||||||
await page.close();
|
|
||||||
client.pupBrowser.on('disconnected', (async () => {
|
client.pupBrowser.on('disconnected', (async () => {
|
||||||
GBLog.info(`Browser terminated. Restarting ${this.min.botId} WhatsApp native provider.`);
|
GBLog.info(`Browser terminated. Restarting ${this.min.botId} WhatsApp native provider.`);
|
||||||
await (createClient.bind(this))(null);
|
await (createClient.bind(this))(null);
|
||||||
|
|
Loading…
Add table
Reference in a new issue