devlikeapro / waha

WAHA - WhatsApp HTTP API (REST API) that you can configure in a click!
https://waha.devlike.pro/
Apache License 2.0
806 stars 247 forks source link

Type documentWithCaptionMessage #345

Closed borsatti2 closed 1 month ago

borsatti2 commented 1 month ago

I discovered a bug that I needed to fix urgently. When someone sends a document with caption, its type is "documentWithCaptionMessage" and it doesn't come with a URL or anything. So I can't access this file. Can you check this for us? image

patron:PRO

allburov commented 1 month ago

Hi! Fixed in 2024.5.10 version!

That's the power :muscle: of the label :point_down:, I even didn't have a coffee before starting fixing it :laughing: :coffee:

patron:PRO

allburov commented 1 month ago

Btw, also added the caption for all messages with captions to body field, so it works the same way as for WEBJS engine

{
  "event": "message",
  "session": "default",
  "payload": {
     ...
    "body": "Check this out!", <<<<<<
    "from": "11111111111@c.us",
    "hasMedia": true,
    "media": {
      "url": "http://localhost:3000/api/files/true_11111111111@c.us_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.jpg",
      "mimetype": "image/jpeg",
      "filename": null
    },
    ...
  }
}

patron:PRO