- 文档必读
- 个人微信
- 个人微信(DLL) 支持http+tcp
- 企业微信(开发中)
- 更新日志
- 插件敏感词审核机制
收到视频消息事件
POST
http://callbackurl
请求参数
Body 参数application/json
event
enum<string>
事件类型
枚举值:
20004
description
string
事件描述
示例值:
视频消息事件
time
integer
毫秒时间戳
示例值:
1726826627676
data
object
数据体
instanceId
string
实例id
示例值:
97554f7c82a1439c86df3143ef4975c5
robotId
string
必需
sendTime
integer
接收到消息的时间
示例值:
1726826627676
localId
string
本地消息id
示例值:
7053704521966022857
serverId
string
服务器消息id
appInfo
string
appInfo
messageType
integer
0
示例值:
103
cdnData
object
必需
cdnType
integer
必需
2 c2cCdn,
3 bigCdn
示例值:
1
height
integer
必需
示例值:
398
width
integer
必需
示例值:
224
duration
integer
必需
示例值:
3
messageSource
integer
必需
1消息为自己发送
conversationId
string
会话Id
fromWxId
string
好友wxid
示例值:
test
toWxId
string
messageSource=0时生效,发送给对方的wxid
fromNickName
string
好友昵称
示例值:
好友昵称
isPc
integer
0
示例
{
"event": "20004",
"description": "视频消息事件",
"time": 1726826627676,
"data": {
"instanceId": "97554f7c82a1439c86df3143ef4975c5",
"robotId": "string",
"sendTime": 1726826627676,
"localId": "7053704521966022857",
"serverId": "string",
"appInfo": "string",
"messageType": 103,
"cdnData": {
"aes_key": "d34a4f140a50e6ae70e9d143d84cc539",
"auth_key": "v1_b1f3aaa0826b04374ef32f357a71dedd0c89a9fc8269a6eeebbf313e1bf80562331f107a960cce8e0333ef5c5dcef5121a467c980347f1d7500872cb217c4fbf",
"file_name": "string",
"preview_img_size": 5765,
"preview_img_url": "https://imunion.weixin.qq.com/cgi-bin/mmae-bin/tpdownloadmedia?param=v1_b1f3aaa0826b04374ef32f357a71dedd0c89a9fc8269a6eeebbf313e1bf80562331b1c940cd18a6a99331d0ef280b9b274a4c8ff926da628c5664be302f026a08afd1e9151b81f14193dffa8021af27a650f231c20229e6ad48840955f46c06ee06e7beaab4635f93944345d1912f3d4f1391340b1050cdf8ec68a9129091718a206e59400105a8f0c3310106aae776e730fe8f9f9465a629064cb6887aa4e5f62daa6450171c4f3a1605bc51f0d7777e0192eb12a5666befcfb031086aeb34c27c7425002851c11791b75d98eefa508e03f63e5cc10601099411c079b73206407aa5f28918ce04b8e4942a2f8ec777f76a28f9333830a5ed35d0d6916dab189",
"height": 120,
"md5": "25a0c03336d8193ba574ca4293403003",
"size": 120722,
"url": "https://imunion.weixin.qq.com/cgi-bin/mmae-bin/tpdownloadmedia?param=v1_b1f3aaa0826b04374ef32f357a71dedd0c89a9fc8269a6eeebbf313e1bf80562a17a41fc8d6f9687797c5b46101b10c00550005678dd5dd26828cf7f63b9a2a57f1f21faf4c2d23c605a506cb0ff939e3bc0e67815d3b6d7b9ec34b23298b5e53a2fed72f707783770042ac8dbb4975245329a54d434200de9c0cc92a0ad9f9375b94deb842ea5c44e72c58dfce454972732c2d469fedaa2dc913710fb7ae71a664840b71536e0bff670c7482efe0fa5e47c8c660272649559dfa4411005bfc30edd9d15af83580253ea628297e7457b56f397cf43ac760fb3770b08ba73623a1704ecdbb52dcb2803c25663a514ea9580a51fd6ced74653f70d0d870123df37",
"width": 90
},
"cdnType": 1,
"height": 398,
"width": 224,
"duration": 3,
"messageSource": 0,
"conversationId": "string",
"fromWxId": "test",
"toWxId": "string",
"fromNickName": "好友昵称",
"isPc": 0
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://callbackurl' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2024-11-26 06:47:54