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

sendPtt and sendAudio problem with crash #3172

Closed
1 task done
GladistonXD opened this issue Feb 19, 2024 · 1 comment
Closed
1 task done

sendPtt and sendAudio problem with crash #3172

GladistonXD opened this issue Feb 19, 2024 · 1 comment

Comments

@GladistonXD
Copy link

Are you using the latest version of the library?

  • 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?

Tested and experienced on both

Mode

My own code

Current Behavior

When you sent more than one audio in the chat, WhatsApp web crashes and no longer sends any messages, I found a solution by disabling a parameter from 'waitForId' true to false.

    sendPtt(to, file, quotedMsgId) {
        return __awaiter(this, void 0, void 0, function* () {
            return this.sendImage(to, file, 'ptt.ogg', '', quotedMsgId ? quotedMsgId : null, false, true);
        });
    }

Expected Behavior

Find the id and send the audio.

Steps To Reproduce

I send the audio, receive the audio, send another audio and the web crashes and doesn't send anything else.

create() code OR full CLI command + CONFIG

No response

DEBUG INFO

Error [TypeError]: Cannot read properties of undefined (reading 'id')

Environment

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

Screenshots/Logs

No response

Anything else?

No response

@smashah
Copy link
Member

smashah commented Feb 19, 2024

please restart and try again

@smashah smashah closed this as completed Feb 19, 2024
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

2 participants