whatsapp-web.js icon indicating copy to clipboard operation
whatsapp-web.js copied to clipboard

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

Open zerodark17 opened this issue 2 years ago • 8 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

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

zerodark17 avatar Jan 11 '23 19:01 zerodark17

Same error with add,remover,promote,demote

BeluxStyle avatar Jan 11 '23 19:01 BeluxStyle

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

offsya avatar Jan 11 '23 19:01 offsya

Same error with add,remover,promote,demote

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

Lucas-Angelo avatar Jan 12 '23 03:01 Lucas-Angelo

same here

Kingbultsea avatar Jan 12 '23 11:01 Kingbultsea

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

BeluxStyle avatar Jan 12 '23 11:01 BeluxStyle

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')

ederyd79 avatar Jan 13 '23 06:01 ederyd79

Yes same for me

RC047 avatar Jan 13 '23 10:01 RC047

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

li588 avatar Jan 15 '23 07:01 li588

works

alechkos avatar Dec 04 '23 00:12 alechkos