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

Parou de funcionar ! #10

Open
tnascif opened this issue May 25, 2023 · 3 comments
Open

Parou de funcionar ! #10

tnascif opened this issue May 25, 2023 · 3 comments

Comments

@tnascif
Copy link

tnascif commented May 25, 2023

Reprodução do erro: /bot teste

C:\ProgramData\zap-gpt-main\node_modules\whatsapp-web.js\src\structures\Message.js:91
this.deviceType = data.id.id.length > 21 ? 'android' : data.id.id.substring(0, 2) == '3A' ? 'ios' : 'web';
^

TypeError: data.id.id.substring is not a function
at Message._patch (C:\ProgramData\zap-gpt-main\node_modules\whatsapp-web.js\src\structures\Message.js:91:75)
at new Message (C:\ProgramData\zap-gpt-main\node_modules\whatsapp-web.js\src\structures\Message.js:18:24)
at Client.sendMessage (C:\ProgramData\zap-gpt-main\node_modules\whatsapp-web.js\src\Client.js:699:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

@DisneyMjr
Copy link

aqui tbm tá assim

@victorharry
Copy link
Owner

Vou dar uma olhada pessoal, não tive muito tempo ultimamente pra olhar os projetos pessoais.

@tnascif
Copy link
Author

tnascif commented May 29, 2023

Então, acabei dando uma pesquisada aqui, achei esse hot fix que funcionou pra mim. https://github.com/pedroslopez/whatsapp-web.js/pull/2196/files

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

3 participants