open-wa / wa-automate-nodejs

💬 🤖 The most reliable tool for chatbots with advanced features. Be sure to 🌟 this repository for updates!
https://docs.openwa.dev/
Other
3.05k stars 588 forks source link

approveGroupJoinRequest() returns error TypeError: _0x461cc2[("moZ" + "AY")](...) is not a function #3194

Closed TVARecordings closed 2 months ago

TVARecordings commented 2 months ago

Are you using the latest version of the library?

What type of session are you experiencing this issue on?

Multi-device and I have set multiDevice to true in my config OR am using the --multi-device flag

What type of host account are you experiencing this issue on?

Personal account (normal)

Mode

EASY API/CLI

Current Behavior

Doesn't accept a participant's group join request.

Expected Behavior

Accept the request.

Steps To Reproduce

await Client.approveGroupJoinRequest(message.chatId, message.sender.id)

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
  "WA_VERSION": "2.3000.1012739408",
  "WA_AUTOMATE_VERSION": "4.71.8",
  "BROWSER_VERSION": "Chrome/123.0.6312.107",
  "START_TS": 1712945441590,
  "RAM_INFO": "Total: 68.62 GB | Free: 44.49 GB",
  "PPTR_VERSION": "19.11.1",
  "LATEST_VERSION": true,
  "CLI": false,
  "PATCH_HASH": "CACHED-98cb5",
  "LAUNCH_TIME_MS": 7261,
  "ACC_TYPE": "BUSINESS",
  "chats": 338,
  "messages": 364,
  "contacts": 2740,
  "isBiz": true,
  "isMd": true,
  "INSTANCE_ID": "fb134eb1-af83-4e2c-b048-10d59b84b7a1"
}

Environment

- OS: Windows 10
- Node: 20.11.1
- npm: 10.2.4

Screenshots/Logs

0|Ameca | 12-04-2024 [[TVA] NSFW & Porn] 20:11:30 System: gp2 385992009355@c.us [object Object] 0|Ameca | 385992009355 (Filip Sirocic) Has requested access for [TVA] NSFW & Porn 0|Ameca | Attempting to approveGroupJoinRequest(120363046249503697@g.us,385992009355@c.us) for undefined 0|Ameca | ERROR: [20h11:31.541] TypeError: _0x461cc2("moZ" + "AY") is not a function 0|Ameca | Error [TypeError]: _0x461cc2("moZ" + "AY") is not a function 0|Ameca | at window.. (evaluate at E:\AmecaCore\node_modules\@open-wa\wa-automate\dist\controllers\patch_manager.js:127:50, :0:437102) 0|Ameca | at evaluate (evaluate at Client. (E:\AmecaCore\node_modules\@open-wa\wa-automate\dist\api\Client.js:565:44), :0:38) 0|Ameca | at #evaluate (E:\AmecaCore\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:222:56) 0|Ameca | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 0|Ameca | at async ExecutionContext.evaluate (E:\AmecaCore\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\ExecutionContext.js:117:16) 0|Ameca | at async IsolatedWorld.evaluate (E:\AmecaCore\node_modules\puppeteer-core\lib\cjs\puppeteer\cdp\IsolatedWorld.js:124:16) 0|Ameca | at async CdpFrame.evaluate (E:\AmecaCore\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Frame.js:342:20) 0|Ameca | at async CdpPage.evaluate (E:\AmecaCore\node_modules\puppeteer-core\lib\cjs\puppeteer\api\Page.js:828:20)

Anything else?

No response