Download Media
To download media message file to any particular user or group you can use the below API.
info
{api-base-url}
can be obtained from the MirrorFly console.
#
HTTP request#
Request ParamsParam | DataType | Required | Description |
---|---|---|---|
fileToken | String | Yes | Token of the uploaded file |
Note : FileToken will get from the Chat History Response based on the Message ID, inside Media Object the variable is defined as
fileUrl
.
#
ResponsesIf successful, this action returns the downloable file as byte[]
format.
#
ErrorIn the case of an error, an error object like below is returned.
When the token passed in Headers is expired
In the case of a Bad Request, an error message is returned