#link image preview (thumbnail) not showing

10 messages · Page 1 of 1 (latest)

grave flower
#

hey, I have an issue:
Link previews not working in WhatsApp Web (bot) but work fine in mobile app

Link previews (images) work perfectly when sending links manually from mobile WhatsApp
When using whatsapp-web.js bot to send the same links, no preview appears (only the title, description + URL).

This affects all types of links (Amazon, etc.), it doesn't show the product image

#

top: bot message (no preview)
bottom: own message
it's the same link, I don't know why it doesn't work

stuck rivet
#

It depends on how fast the link responds, because in a backend there's time to wait

grave flower
#

Hey, thanks for the reply, how would I fix this? I've tried Various delays before sending (3s, 8s, 12s), and Both client.sendMessage() and chat.sendMessage() APIs

stuck rivet
grave flower
#

oh okay, is there any solution, can we access or override the internal link preview function to add longer timeouts? Or is there a workaround to pre-fetch the preview data before sending?

grave flower
#

could you give me a specific example of how to implement this? :/ I'm not sure what exactly to try.

stuck rivet
grave flower
#

i'm really not sure, i've asked ai and all and i can't seem to find a way