私信Event

私信事件

PersonalMessageEvent

触发时机

用户私聊机器人时

事件类型

1001

事件内容

EventBodyPersonalMessage

字段类型说明
dodoIdstring来源DoDo号
personalobject个人信息
messageIdstring消息ID
messageTypeint消息类型,1:文字消息,2:图片消息,3:视频消息
messageBodyobject消息内容

事件示例

{
    "type": 0,
    "data": {
        "eventBody": {
            "dodoId": "681856",
            "personal": {
                "nickName": "测试DoDo昵称",
                "avatarUrl": "https://static.imdodo.com/DoDoRes/Avatar/6.png",
                "sex": 1
            },
            "messageId": "963348f7-cf78-4229-b348-f7cf78622961",
            "messageType": 1,
            "messageBody": {
                "content": "菜单"
            }
        },
        "eventId": "14ba9d75b8d744c3a9b0a343ea1b4051",
        "eventType": "1001",
        "timestamp": 1661153248945
    }
}
{
    "type": 0,
    "data": {
        "eventBody": {
            "dodoId": "681856",
            "personal": {
                "nickName": "测试DoDo昵称",
                "avatarUrl": "https://static.imdodo.com/DoDoRes/Avatar/6.png",
                "sex": 1
            },
            "messageId": "963348f7-cf78-4229-b348-f7cf78622962",
            "messageType": 2,
            "messageBody": {
                "url": "https://img.imdodo.com/dodo/8c77d48865bf547a69fb3bba6228760c.png",
                "width": 600,
                "height": 600,
                "isOriginal": 1
            }
        },
        "eventId": "14ba9d75b8d744c3a9b0a343ea1b4052",
        "eventType": "1001",
        "timestamp": 1661153248945
    }
}
{
    "type": 0,
    "data": {
        "eventBody": {
            "dodoId": "681856",
            "personal": {
                "nickName": "测试DoDo昵称",
                "avatarUrl": "https://static.imdodo.com/DoDoRes/Avatar/6.png",
                "sex": 1
            },
            "messageId": "963348f7-cf78-4229-b348-f7cf78622963",
            "messageType": 3,
            "messageBody": {
                "url": "https://video.imdodo.com/dodo/7f0a1979c818fa05cf7bdeae20aad24b.mp4",
                "coverUrl": "https://img.imdodo.com/dodo/42c330887d2f4fa5bebbde53653443cd.png",
                "duration": 0,
                "size": 8525133
            }
        },
        "eventId": "14ba9d75b8d744c3a9b0a343ea1b4053",
        "eventType": "1001",
        "timestamp": 1661153248945
    }
}