Download medias
There's a lib for nodejs here: Click here
After you receive a event of a message, it may include a media, to receive said media, like a image, you can request it on our API, you can also decrypt it on our own, we do not provide such information, but he message has the keys to it.
Read the details of how to use it in Requests.
Download a media
All you have to do, is make a request with the message object received through a event as bellow.
{ "connectionId": "YOUR_CONNECTION_ID", "method": "downloadMediaMessage", "params": [ "MESSAGE_OBJECT" ] }