notify_type: 1010| 字段 | 类型 | 说明 |
|---|---|---|
from_username | string | 消息来源 username。 |
to_username | string | 消息接收方 username。 |
chatroom_sender | string | 群消息发送人 username,非群消息通常为空。 |
create_time | integer | 消息时间戳。 |
desc | string | 消息摘要。 |
msg_id | string | 消息 ID。 |
msg_type | integer | 消息类型。 |
is_chatroom_msg | integer | 1 表示群消息,0 表示非群消息。 |
chatroom | string | 群 username,非群消息为空。 |
source | string | 消息来源扩展信息。 |
content | string | 消息内容。 |
{
"guid": "client-guid",
"notify_type": 1010,
"data": {
"from_username": "wxid_sender",
"to_username": "wxid_receiver",
"chatroom_sender": "",
"create_time": 1785413990,
"desc": "你好",
"msg_id": "7350012345678901234",
"msg_type": 1,
"is_chatroom_msg": 0,
"chatroom": "",
"source": "",
"content": "你好"
}
}msg_type 分发到对应消息处理逻辑。msg_type 分类型处理。