devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click! Two engines: chromium-based WEBJS and pure-websocket NOWEB
https://waha.devlike.pro/
Apache License 2.0
944 stars 283 forks source link

Send image in HD #269

Closed giljlle closed 7 months ago

giljlle commented 7 months ago

I’m not sure if there is already a command or feature, but I need to send an image enabling the HD function on WhatsApp, where the image is sent in higher resolution. I appreciate anyone who can help me. Tks

allburov commented 7 months ago

Hi! You need to use POST /api/sendFile instead of POST /api/sendImage. https://waha.devlike.pro/docs/how-to/send-messages/#send-file-imagesversionspluspng

Even the official WhatsApp apps don't allow to just send the HD image, it's either got compressed and send as "image" or it sends it as a file (attachement)