send-message/forward-voice
Description
- Forward voice message, it is necessary to download it via the CDN first and then upload the CDN's response to send it.
Request URL
http://127.0.0.1:8888/api/
Request Method
Parameters
Parameter Name | Required | Parameter Type | Description |
---|
type | Yes | int | API ID |
userName | Yes | string | Receiver's wxid |
rawtotalsize | Yes | string | Size of the source file, returned by the CDN upload interface |
fileid | Yes | string | File ID, returned by the CDN upload interface |
aeskey | Yes | string | AES key, returned by the CDN upload interface |
voiceduration | Yes | string | Duration of the voice message (in milliseconds), returned by the CDN upload interface |
Request Example
{
"type": 6,
"userName": "filehelper",
"fileSize": 305552,
"duration": 60000,
"fileid": "3052020100044b304902010002048040484d02032f54cd02043204607702046436c14b042432666338643862662d626662322d343839622d626135652d61643135626138336162386502040114000f020100040079620db5",
"aeskey": "a5aa1dea5907caf5d4ea8996aeca5954"
}
Return Example
{
"data": {
"status": 0,
"desc": "",
}
}
Return Parameter Description
Parameter Name | Parameter Type | Description |
---|
error_code | int | Error code |
description | string | Error Description |
data | json | Business data |