Skip to content

[Question] Issue Accessing Media from Chat Messages API #1752

@tiarsagitar

Description

@tiarsagitar

I would like to ask about loading images or media from the chat messages API.

I received the following object from this endpoint:
GET /api/{session}/chats/{chatId}/messages?limit=10

"media": {
  "url": "(http://mywahaserverurl.com/api/files/S9IX1765871200/3EB069B159C02.jpeg)",
  "filename": null,
  "mimetype": "image/jpeg"
}

However, when I try to access the media using the provided URL, it returns an error.

Previously, I was able to use the URL from the media object to preview the image without any issues. Could you please let me know the correct way to retrieve or load media files inside the chat?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions