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

Type documentWithCaptionMessage #345

Closed
borsatti2 opened this issue May 23, 2024 · 2 comments
Closed

Type documentWithCaptionMessage #345

borsatti2 opened this issue May 23, 2024 · 2 comments
Labels
bug Something isn't working engine:NOWEB patron:PRO

Comments

@borsatti2
Copy link

borsatti2 commented May 23, 2024

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
Copy link
Contributor

allburov commented May 24, 2024

Hi! Fixed in 2024.5.10 version!

That's the power 💪 of the label 👇, I even didn't have a coffee before starting fixing it 😆 ☕

patron:PRO

@allburov
Copy link
Contributor

allburov commented May 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working engine:NOWEB patron:PRO
Projects
None yet
Development

No branches or pull requests

2 participants