Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The delay is not working #2464

Closed
RodrigoSerrasqueiro opened this issue Oct 29, 2024 · 0 comments
Closed

The delay is not working #2464

RodrigoSerrasqueiro opened this issue Oct 29, 2024 · 0 comments

Comments

@RodrigoSerrasqueiro
Copy link

WA-JS Version

1.5.577

WhatsApp Version

2.3000.1017756636

Browser Version

Chrome 130.0.6723.70 (Versão oficial) 64 bits

Operation System

Windows 11 23H2

Steps to reproduce

inject wppconnect-wa.js script into Whatsapp Web page

After injecting the script into the page, the WPP global variable must be available in the window object and accessible through the console.

Access Whatsapp Web

Access Whatsapp Web, select a chat and open the developer tools

Run the code below in the browser console

remember to replace "" with a base64 string from an audio file in .ogg format. I recommend downloading a file directly from Whatsapp.

WPP.chat.sendFileMessage( WPP.chat.getActiveChat().id, 'data:audio/mp3;base64,<a long base64 file...>', { type: 'audio', delay: 10000 } );

What is expected?

When sending audio messages, the person receiving the message must appear "recording audio" during the configured delay time and only then can the message be sent.

What is actually happening?

The message is being sent at the same time.

Any additional comments?

In the case of sending text messages, the delay is working normally. It even appears to the user "typing..."

WPP.chat.sendTextMessage(WPP.chat.getActiveChat().id, 'Delay with typing', { delay: 4000 })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant