From 314b02daf1aeb1e7e02fc6f017a191ec0b683a46 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Wed, 2 Jul 2025 11:12:43 +0700 Subject: [PATCH] [core] WEBJS add waha arguments to chrome to identify it better --- src/core/engines/webjs/session.webjs.core.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/engines/webjs/session.webjs.core.ts b/src/core/engines/webjs/session.webjs.core.ts index b182c1ce..75b129b7 100644 --- a/src/core/engines/webjs/session.webjs.core.ts +++ b/src/core/engines/webjs/session.webjs.core.ts @@ -194,11 +194,15 @@ export class WhatsappSessionWebJSCore extends WhatsappSession { if (cacheType === 'local') { this.logger.info(`Using web version: '${webVersion}'`); } + const args = this.getBrowserArgsForPuppeteer(); + // add at the start + args.unshift(`--a-waha-timestamp=${new Date()}`); + args.unshift(`--a-waha-session=${this.name}`); return { puppeteer: { headless: true, executablePath: this.getBrowserExecutablePath(), - args: this.getBrowserArgsForPuppeteer(), + args: args, dumpio: this.isDebugEnabled(), }, userAgent: