Skip to content

文件消息 ​

contentType 设置为 file。

Content 字段 ​

字段类型是否必填说明
fileKeystring是通过文件上传接口获得的文件 Key
fileNamestring否展示给用户的自定义文件名
buttonsButton[][]否消息按钮

示例 ​

json
{
  "recvId": "307149245",
  "recvType": "group",
  "contentType": "file",
  "content": {
    "fileKey": "uploaded-file-key",
    "fileName": "example.zip"
  }
}