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.11k stars 588 forks source link

client.ForwardMessages() not working. No error given. #3155

Open TVARecordings opened 8 months ago

TVARecordings commented 8 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

Currently, when executing. It runs normally. No error codes or crashes.

Expected Behavior

Expected behavior: Forward the message.

Steps To Reproduce

Type !fw

create() code OR full CLI command + CONFIG

try {
          console.log('Forwarding step 1')
          const MentionedMessage = message.quotedMsgObj.id.substring(6,67)
          //await client.reply(from,MentionedMessage,id)
          console.log('Forwarding step 2')
          console.log(`Forwarding ${MentionedMessage}`)
          client.forwardMessages('31681351589@c.us',MentionedMessage,false)
          console.log('Forward done')
        } catch(err){
          console.log(err)
          client.sendText(from,err,id)
        }

DEBUG INFO

Forwarding step 1
Forwarding step 2
Forwarding 120363190297550243@g.us_3A644D8DD865560250D8_31681351589@c.us
Forward done

Environment

- OS: Windows 10 Pro
- Node: 18.16.0
- npm: Not sure

Screenshots/Logs

No response

Anything else?

No response

desarrollodxt commented 8 months ago

Whatsapp web was updated

TVARecordings commented 8 months ago

Whatsapp web was updated

Aha. Any ETA of a update?