pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.53k stars 3.7k forks source link

Evaluation failed: TypeError: Cannot read properties of undefined (reading 'sendRemoveParticipants') #1919

Closed zerodark17 closed 11 months ago

zerodark17 commented 1 year ago

Is there an existing issue for this?

Describe the bug

0|index | Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'sendRemoveParticipants') 0|index | at pptr://puppeteer_evaluation_script:4:51 0|index | at ExecutionContext._ExecutionContext_evaluate (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:286:15) 0|index | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 0|index | at async ExecutionContext.evaluate (/root/bot/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:117:16) 0|index | at async GroupChat.removeParticipants (/root/bot/node_modules/whatsapp-web.js/src/structures/GroupChat.js:75:16)

Expected behavior

ban participants

Steps to Reproduce the Bug or Issue

// window.Store.Features = window.mR.findModule('FEATURE_CHANGE_EVENT')[0].LegacyPhoneFeatures;

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: [e.g. Mac, Windows, Linux, Docker + Ubuntu 18, etc]

Additional context

bug

BeluxStyle commented 1 year ago

Same error with add,remover,promote,demote

offsya commented 1 year ago

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'LegacyPhoneFeatures')

Lucas-Angelo commented 1 year ago

Same error with add,remover,promote,demote

same error when trying to join, leave or update group name

Kingbultsea commented 1 year ago

same here

BeluxStyle commented 1 year ago

https://github.com/pedroslopez/whatsapp-web.js/issues/1920#issuecomment-1379798710

Here the solución, but if u restart app need do this another time

ederyd79 commented 1 year ago

When you edit the LegacyPhoneFeatures, works for individual chats, but you lose the managing of Group chats.

Any solution for that?

Evaluation failed: TypeError: Cannot read properties of undefined (reading 'sendAddParticipants')

RC047 commented 1 year ago

Yes same for me

li588 commented 1 year ago

I also have this error, it seems very serious, who can solve it?

alechkos commented 11 months ago

works