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

Media send not see preview as we send it manually #1199

Open
tls-jil opened this issue Jan 10, 2025 · 0 comments
Open

Media send not see preview as we send it manually #1199

tls-jil opened this issue Jan 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@tls-jil
Copy link

tls-jil commented Jan 10, 2025

as I use the following code to send media

issue

  1. PDF does not send with the name even if i pass filename [for PDF i used base64 code]
  2. on image send not get preview before download

// if get media direact URL
messageContent = {
[mediaType]: {
url: image,
mimetype: mimeType,
fileName: file_name,
},
caption,
};

// if get base64
messageContent = {
[mediaType]: mediaBuffer,
mimetype: mimeType,
fileName: file_name,
caption,
};
}

  console.log("messageContent :>> ", messageContent);
  const sendResult = await wpClient.sendMessage(
    `${number}@c.us`,
    messageContent
  );

using the above code i was able o send media but not get blurred preview in WhatsApp chat for more ref i attached a screenshot if any one have an idea how to do that and

send using Script
Group 12

send Manully
Group 11

@tls-jil tls-jil added the bug Something isn't working label Jan 10, 2025
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

No branches or pull requests

1 participant