From ae256da5965dc433f44b213e0a730d263b8e9a84 Mon Sep 17 00:00:00 2001 From: synt-xerror <169557594+synt-xerror@users.noreply.github.com> Date: Tue, 17 Mar 2026 08:10:16 -0300 Subject: [PATCH] root support --- .gitignore | 3 ++- src/client/whatsappClient.js | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7930832..2d26081 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ node_modules/ cookies.txt bin/ mychats.txt -manybot.conf \ No newline at end of file +manybot.conf +update.log \ No newline at end of file diff --git a/src/client/whatsappClient.js b/src/client/whatsappClient.js index e5496c3..9ecc785 100644 --- a/src/client/whatsappClient.js +++ b/src/client/whatsappClient.js @@ -16,7 +16,15 @@ logger.info(isTermux // ── Instância ───────────────────────────────────────────────── export const client = new Client({ authStrategy: new LocalAuth({ clientId: CLIENT_ID }), - puppeteer: { headless: true, ...resolvePuppeteerConfig() }, + puppeteer: { + headless: true, + args: [ + '--no-sandbox', + '--disable-setuid-sandbox', + ...(resolvePuppeteerConfig().args || []) + ], + ...resolvePuppeteerConfig() + }, }); // ── Eventos ───────────────────────────────────────────────────