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

Sending Big Files #1771

Open
1 task done
mateusfmello opened this issue Oct 28, 2022 · 0 comments · May be fixed by #2368
Open
1 task done

Sending Big Files #1771

mateusfmello opened this issue Oct 28, 2022 · 0 comments · May be fixed by #2368
Labels
bug Something isn't working

Comments

@mateusfmello
Copy link

mateusfmello commented Oct 28, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When trying to send an audio file ( MP3 ) that is 50 MB in size an error occurs, I use the window.WWebJS.sendMessage(chatWid, "", param1) method to send the files.

Being param1:

{
     "attachment": >>> FILE IN BASE 64 <<<,
     "sendMediaAsDocument": true
}

Expected behavior

That the 50MB audio file be sent as a document in the conversation

Steps to Reproduce the Bug or Issue

  1. Convert a 50 MB file to BASE64
  2. Create an object like the param1 previously informed
  3. Retrieve a ChatWid
  4. Use the window.WWebJS.sendMessage(chatWid, "", param1) method to try to send the file

Relevant Code

No response

Browser Type

Google Chrome

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

  • OS: Docker + Debian 11 ( bullseye )
  • whatsapp-web.js version: 1.18.2
  • WhatsApp Web version: 2.2241.7

Additional context

I don't use the whole project, just the "src/util/Injected.js" file injecting it into the browser to have access to the methods via a PHP application developed by me.

Error in console

unknown error: call function result must be a dictionary
@mateusfmello mateusfmello added the bug Something isn't working label Oct 28, 2022
@opssemnik opssemnik linked a pull request Jul 28, 2023 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant