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

  • POST

Parameters

Parameter NameRequiredParameter TypeDescription
typeYesintAPI ID
userNameYesstringReceiver's wxid
rawtotalsizeYesstringSize of the source file, returned by the CDN upload interface
fileidYesstringFile ID, returned by the CDN upload interface
aeskeyYesstringAES key, returned by the CDN upload interface
voicedurationYesstringDuration 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 NameParameter TypeDescription
error_codeintError code
descriptionstringError Description
datajsonBusiness data

Remark