waha icon indicating copy to clipboard operation
waha copied to clipboard

[Feature Request] Add - GET /api/{session}/chats/{chatId}/messages/{messageId}

Open HuangDaHui opened this issue 1 year ago • 5 comments

/api/{session}/chats/{chatId}/messages/{messageId}?downloadMedia=true

If an attachment fails to download, I can obtain the attachment separately without using /api/{session}/chats/{chatId}/messages This will reduce the load on the server

HuangDaHui avatar Aug 09 '24 07:08 HuangDaHui

makes sense, we'll check that! Do you use NOWEB, right?

patron:PRO

devlikepro avatar Aug 13 '24 06:08 devlikepro

makes sense, we'll check that! Do you use NOWEB, right?

patron:PRO

NOWEB is used more, WEBJS is also used, because I think WEBJS can reduce the risk of being blocked But this function is applicable to both NOWEB and WEBJS. If I have this function, I may not actively download attachments anymore. I will only download them when I need to view them.

HuangDaHui avatar Aug 13 '24 07:08 HuangDaHui

makes sense, we'll check that! Do you use NOWEB, right?

patron:PRO

Hi, if I buy the PRO version, will this feature be updated soon? I really need this feature, if possible I will buy the PRO version

HuangDaHui avatar Sep 04 '24 09:09 HuangDaHui

Hi! We're planning to work on /messages improvements (including this one) in October.

patron:PRO

devlikepro avatar Sep 05 '24 06:09 devlikepro

Hi! We're planning to work on /messages improvements (including this one) in October.

patron:PRO

OK, looking forward to your updates, thank you

HuangDaHui avatar Sep 05 '24 06:09 HuangDaHui

related https://github.com/devlikeapro/waha/issues/159

patron:PRO

devlikepro avatar Oct 22 '24 05:10 devlikepro

Added in 2024.10.9

https://waha.devlike.pro/docs/how-to/chats/#get-message-by-id


Get message by id

Get message by id

GET /api/{session}/chats/{chatId}/messages/{messageId}?downloadMedia=true
{
    "id": "[email protected]_AAAAAA",
    "timestamp": 1727745026,
    "from": "[email protected]",
    "fromMe": false,
    "body": "I'm good!",
    "hasMedia": false,
    "ack": 3,
    "ackName": "READ",
    "replyTo": null,
    "_data": {
        ... // Raw Engine Data
    }
}

patron:PRO

devlikepro avatar Oct 27 '24 08:10 devlikepro

buy the PRO version

Feel free to do that now :laughing: :+1:

patron:PRO

devlikepro avatar Oct 27 '24 08:10 devlikepro