wa-automate-nodejs icon indicating copy to clipboard operation
wa-automate-nodejs copied to clipboard

Delete Message doesn't work

Open daopapp opened this issue 2 years ago • 5 comments

Are you using the latest version of the library?

  • [X] I have checked and am 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?

Business account

Mode

EASY API/CLI

Current Behavior

I'm trying to use the endpoint deleteMessage, but the post freeze and doesn't delete the message.

Expected Behavior

Delete the message by ID

Steps To Reproduce

post on deleteMessage body: { "args": { "chatId": "[email protected]", "messageId": "[email protected]_6FA0BE9999999AAADDD", "onlyLocal": false } }

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

{
  "WA_VERSION": "2.2212.8",
  "WA_AUTOMATE_VERSION": "4.35.10",
  "BROWSER_VERSION": "HeadlessChrome/100.0.4896.127",
  "START_TS": 1650649570526,
  "RAM_INFO": "Total: 33.69 GB | Free: 20.10 GB",
  "PPTR_VERSION": "UNKNOWN",
  "LATEST_VERSION": true,
  "CLI": true,
  "LAUNCH_TIME_MS": 50666,
  "ACC_TYPE": "BUSINESS",
  "chats": 505,
  "messages": 543,
  "contacts": 24622,
  "isBiz": true,
  "isMd": true,
  "INSTANCE_ID": "babe2574-90c8-458b-909c-86f78387a173"
}

Environment

- OS: Linux 4.15
- Node: 17.9.0
- npm: 8.5.5

Screenshots/Logs

No response

Anything else?

No response

daopapp avatar Apr 25 '22 17:04 daopapp

bump

smashah avatar May 04 '22 14:05 smashah

#bump

HauptBot > [GROUP-CMD] [Jeff_1] [04/05/2022 18:36:56] /del [0] from 「#𝕋𝕠𝕘𝕖𝕡𝕚𝕚」 in Bocchi Join Test 😴
HauptBot > Error: Evaluation failed: TypeError: _0x3c5025[(_0x4aa3f4(...) + _0x4aa3f4(...) + "vok" + _0x4aa3f4(...) + "gs")] is not a function HauptBot > at Object.window.. [as smartDeleteMessages (puppeteer_evaluation_script:1:188957)
HauptBot > at ExecutionContext._evaluateInternal (/home/whatsapp/BocchiBot-Haupt/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19) HauptBot > at runMicrotasks () HauptBot > at processTicksAndRejections (node:internal/process/task_queues:96:5) HauptBot > at async ExecutionContext.evaluate (/home/whatsapp/BocchiBot-Haupt/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)

t0g3pii avatar May 04 '22 16:05 t0g3pii

@t0g3pii @daopapp patched. please try again. Original issue may not be fixed but the error code provided by @t0g3pii should be resolved.

smashah avatar May 05 '22 23:05 smashah

closing. please reply if this is still happening

smashah avatar Jun 07 '22 14:06 smashah

Hi, on my script I have some similar error

An error has occurred: Error: Evaluation failed: TypeError: _0x371c1e[("sen" + _0x1df71f(...) + "vok" + "eMs" + "gs")] is not a function at window.<computed>.<computed> [as smartDeleteMessages] (pptr://__puppeteer_evaluation_script__:1:203439)

I know, this isn't your script and you probably can't help me but how did you fix your error?

Anyways thanks for reading ^~^

RE-ProBot avatar Aug 11 '22 05:08 RE-ProBot

@RE-ProBot i cannot replicate this issue you're having.

please make a new issue with the issue template with reproducible code

smashah avatar Aug 14 '22 14:08 smashah