Closed shakibkhou closed 1 year ago
Same here
Same here
@pedroslopez please help
what is version use?
Same here. Im using windows 11. Multi-device In linux is ok
here it stopped also generates the QR code connects but does not send a message
same problem, initialize but status not on ready, please help.
Same problem here any feedback ?
In order to update to latest version do I just need to use cmd npm update or npm i whatsapp-web.js?
@shakibkhou use npm i whatsapp-web.js@1.22.1
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
@shakibkhou use npm i whatsapp-web.js@1.22.1
This didnt work but will keep it in mind in future
const INTRO_IMG_SELECTOR = "[data-icon='chat']";
work for me !
const INTRO_IMG_SELECTOR = "[data-icon='chat']";
worked for me too
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
Work for me
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
It Works for me, Thanks And please can U explain why that problem occurred?
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
Work for me tooo! Thx!
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
just update to last version and find Client.js in folder node_modules/whatsapp-webjs/src and replace; Thanks it's work for me
Works but when forwarding messages displays this message:
the bot is just displays the message: Evaluation failed: TypeError: chat.forwardMessages is at puppeteer_evaluation_script:5:31
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
worked here also
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
I tried this, works when running locally, but when deployed on heroku, the qr code scanned is not connected and didn't return auth event
THIS IS THE SOLUTION
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
const INTRO_IMG_SELECTOR = "[data-icon='chat']";
thx.. work again
const INTRO_IMG_SELECTOR = '[data-icon=\'chat\']';
works
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
Works for me
i try this and it works for me,
path : /node_modules/whatsapp-web.js/src/Client.js
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
Good morning, Does this error occur for those in version 2.2333.11?
after this correction I get this error:
Error: Evaluation failed: TypeError: window.compareWwebVersions is not a function at window.WWebJS.getContactModel (__puppeteer_evaluation_script__:413:22) at window.WWebJS.getContact (__puppeteer_evaluation_script__:464:30) at ExecutionContext._evaluateInternal (/home/apps/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async ExecutionContext.evaluate (/home/apps/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16) at async Client.getContactById (/home/apps/node_modules/whatsapp-web.js/src/Client.js:872:23) at async Socket.<anonymous> (/home/apps/controllers/socket.js:297:25)
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
Had the same problem, this worked! Thanks!
Client.js Substituir const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro -image-light="true"], [data-asset-intro-image-dark="true"]'; Com const INTRO_IMG_SELECTOR = "[data-icon='chat']";
Works for me
Thanks
@juansarea thank you so much for the fix, it worked
Thank you. Got working now.
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
Thanks bro, it works!
Confirmed it fixes the issue, at least on my side.
Os: Raspberry Browser: Chromium
i try this and it works for me,
Client.js Replace const INTRO_IMG_SELECTOR = '[data-testid="intro-md-beta-logo-dark"], [data-testid="intro-md-beta-logo-light"], [data-asset-intro-image-light="true"], [data-asset-intro-image-dark="true"]'; With const INTRO_IMG_SELECTOR = "[data-icon='chat']";
Worked!
Is there an existing issue for this?
Describe the bug
The system opens whats app web, but it does not connect for the message to go out. So If I send the message, it is stuck at the first group.
Expected behavior
send my message
Steps to Reproduce the Bug or Issue
open app press send whats app web is open
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
windows 11
Additional context
No response