事件类型一览

Bot自身事件

Bot登录成功

{
  "type":"BotOnlineEvent",
  "qq":123456
}
名字类型说明
qqLong登录成功的Bot的QQ号

Bot主动离线

{
  "type":"BotOfflineEventActive",
  "qq":123456
}
名字类型说明
qqLong主动离线的Bot的QQ号

Bot被挤下线

{
  "type":"BotOfflineEventForce",
  "qq":123456
}
名字类型说明
qqLong被挤下线的Bot的QQ号

Bot被服务器断开或因网络问题而掉线

{
  "type":"BotOfflineEventDropped",
  "qq":123456
}
名字类型说明
qqLong被服务器断开或因网络问题而掉线的Bot的QQ号

Bot主动重新登录

{
  "type":"BotReloginEvent",
  "qq":123456
}
名字类型说明
qqLong主动重新登录的Bot的QQ号

好友事件

好友输入状态改变

{
  "type": "FriendInputStatusChangedEvent",
  "friend": {
    "id": 123123,
    "nickname": "nick",
    "remark": "remark"
  }, 
  "inputting": true
}
名字类型说明
idLong好友 QQ 号码
nicknameString好友昵称
remarkString好友备注
inputtingBoolean当前输出状态是否正在输入

好友昵称改变

{
  "type": "FriendNickChangedEvent",
  "friend": {
    "id": 123123,
    "nickname": "nick",
    "remark": "remark"
  }, 
  "from": "origin nickname",
  "to": "new nickname"
}
名字类型说明
idLong好友 QQ 号码
nicknameString好友昵称(值不确定)
remarkString好友备注
fromString原昵称
toString新昵称

群事件

Bot在群里的权限被改变. 操作人一定是群主

{
  "type": "BotGroupPermissionChangeEvent",
  "origin": "MEMBER",
  "current": "ADMINISTRATOR",
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "ADMINISTRATOR"
  }
}
名字类型说明
originStringBot的原权限,OWNER、ADMINISTRATOR或MEMBER
currentStringBot的新权限,OWNER、ADMINISTRATOR或MEMBER
groupObject权限改变所在的群信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER

Bot被禁言

{
  "type": "BotMuteEvent",
  "durationSeconds": 600,
  "operator": {
    "id": 123456789,
    "memberName": "我是管理员",
    "permission": "ADMINISTRATOR",
    "specialTitle":"群头衔",
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    }
  }
}
名字类型说明
durationSecondsInt禁言时长,单位为秒
operatorObject操作的管理员或群主信息
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operator.groupObjectBot被禁言所在群的信息
operator.group.idLong群号
operator.group.nameString群名
operator.group.permissionStringBot在群中的权限,OWNER或ADMINISTRATOR

Bot被取消禁言

{
  "type": "BotUnmuteEvent",
  "operator": {
    "id": 123456789,
    "memberName": "我是管理员",
    "permission": "ADMINISTRATOR",
    "specialTitle":"群头衔",
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    }
  }
}
名字类型说明
operatorObject操作的管理员或群主信息
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operator.groupObjectBot被取消禁言所在群的信息
operator.group.idLong群号
operator.group.nameString群名
operator.group.permissionStringBot在群中的权限,OWNER或ADMINISTRATOR

Bot加入了一个新群

{
  "type": "BotJoinGroupEvent",
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  },
  invitor: null
}
名字类型说明
groupObjectBot新加入群的信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER(新加入群通常是Member)
invitorObject如果被要求入群的话,则为邀请人的 Member 对象

Bot主动退出一个群

{
  "type": "BotLeaveEventActive",
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  }
}
名字类型说明
groupObjectBot退出的群的信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,ADMINISTRATOR或MEMBER

Bot被踢出一个群

{
  "type": "BotLeaveEventKick",
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  },
  operator: null
}
名字类型说明
groupObjectBot被踢出的群的信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,ADMINISTRATOR或MEMBER
operatorObjectBot被踢后获取操作人的 Member 对象

Bot因群主解散群而退出群, 操作人一定是群主

{
  "type": "BotLeaveEventDisband",
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  },
  operator: null
}
名字类型说明
groupObjectBot所在被解散的群的信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,ADMINISTRATOR或MEMBER
operatorObjectBot离开群后获取操作人的 Member 对象

群消息撤回

{
   "type": "GroupRecallEvent",
   "authorId": 123456,
   "messageId": 123456789,
   "time": 1234679,
   "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "ADMINISTRATOR"
   },
   "operator": {
      "id": 123456789,
      "memberName": "我是管理员",
      "permission": "ADMINISTRATOR",
      "specialTitle":"群头衔",
      "joinTimestamp":12345678,
      "lastSpeakTimestamp":8765432,
      "muteTimeRemaining":0,
      "group": {
        "id": 123456789,
        "name": "Miral Technology",
        "permission": "MEMBER"
      }
   }
}
名字类型说明
authorIdLong原消息发送者的QQ号
messageIdInt原消息messageId
timeInt原消息发送时间
groupObject消息撤回所在的群
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?撤回消息的操作人,当null时为bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operator.groupObject同group

好友消息撤回

{
    "type": "FriendRecallEvent",
    "authorId": 123456,
    "messageId": 123456789,
    "time": 1234679,
    "operator": 123456
}
名字类型说明
authorIdLong原消息发送者的QQ号
messageIdInt原消息messageId
timeInt原消息发送时间
operatorLong好友QQ号或BotQQ号

戳一戳事件

{
    "type": "NudgeEvent",
    "fromId": 123456,
    "subject": {
        "id": 123456,
        "kind": "Group"
    },
    "action": "戳了戳",
    "suffix": "的脸",
    "target": 123456
}
名字类型说明
fromIdLong动作发出者的QQ号
subjectObject来源
subject.idLong来源的QQ号(好友)或群号
subject.kindString来源的类型,"Friend"或"Group"
actionString动作类型
suffixString自定义动作内容
targetLong动作目标的QQ号

某个群名改变

{
  "type": "GroupNameChangeEvent",
  "origin": "miral technology",
  "current": "MIRAI TECHNOLOGY",
  "group": {
    "id": 123456789,
    "name": "MIRAI TECHNOLOGY",
    "permission": "MEMBER"
  },
  "operator": {
    "id": 123456,
    "memberName": "我是群主",
    "permission": "ADMINISTRATOR",
    "specialTitle":"群头衔",
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "OWNER"
    }
  }
}
名字类型说明
originString原群名
currentString新群名
groupObject群名改名的群信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?操作的管理员或群主信息,当null时为Bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER或ADMINISTRATOR
operator.groupObject同group

某群入群公告改变

{
  "type": "GroupEntranceAnnouncementChangeEvent",
  "origin": "abc",
  "current": "cba",
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  },
  "operator": {
    "id": 123456789,
    "memberName": "我是管理员",
    "permission": "ADMINISTRATOR",
    "specialTitle":"群头衔",
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    }
  }
}
名字类型说明
originString原公告
currentString新公告
groupObject公告改变的群信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?操作的管理员或群主信息,当null时为Bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER或ADMINISTRATOR
operator.groupObject同group

全员禁言

{
  "type": "GroupMuteAllEvent",
  "origin": false,
  "current": true,
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  },
  "operator": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"OWNER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    },  
  }
}
名字类型说明
originBoolean原本是否处于全员禁言
currentBoolean现在是否处于全员禁言
groupObject全员禁言的群信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?操作的管理员或群主信息,当null时为Bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER或ADMINISTRATOR
operator.groupObject同group

匿名聊天

{
  "type": "GroupAllowAnonymousChatEvent",
  "origin": false,
  "current": true,
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  },
  "operator": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"OWNER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    }
  }
}
名字类型说明
originBoolean原本匿名聊天是否开启
currentBoolean现在匿名聊天是否开启
groupObject匿名聊天状态改变的群信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?操作的管理员或群主信息,当null时为Bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER或ADMINISTRATOR
operator.groupObject同group

坦白说

{
  "type": "GroupAllowConfessTalkEvent",
  "origin": false,
  "current": true,
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  },
  "isByBot": false
}
名字类型说明
originBoolean原本坦白说是否开启
currentBoolean现在坦白说是否开启
groupObject坦白说状态改变的群信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
isByBotBoolean是否Bot进行该操作

允许群员邀请好友加群

{
  "type": "GroupAllowMemberInviteEvent",
  "origin": false,
  "current": true,
  "group": {
    "id": 123456789,
    "name": "Miral Technology",
    "permission": "MEMBER"
  },
  "operator": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"OWNER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    }
  }
}
名字类型说明
originBoolean原本是否允许群员邀请好友加群
currentBoolean现在是否允许群员邀请好友加群
groupObject允许群员邀请好友加群状态改变的群信息
group.idLong群号
group.nameString群名
group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?操作的管理员或群主信息,当null时为Bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER或ADMINISTRATOR
operator.groupObject同group

新人入群的事件

{
  "type": "MemberJoinEvent",
  "member": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"MEMBER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }
  },
  invitor: null
}
名字类型说明
memberObject新人信息
member.idLong新人的QQ号
member.memberNameString新人的群名片
member.permissionString新人在群中的权限,OWNER、ADMINISTRATOR或MEMBER(新入群通常是MEMBER)
member.groupObject新人入群的群信息
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
invitorObject如果被要求入群的话,则为邀请人的 Member 对象

成员被踢出群(该成员不是Bot)

{
  "type": "MemberLeaveEventKick",
  "member": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"MEMBER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }
  },
  "operator": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"OWNER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }
  }
}
名字类型说明
memberObject被踢者的信息
member.idLong被踢者的QQ号
member.memberNameString被踢者的群名片
member.permissionString被踢者在群中的权限,ADMINISTRATOR或MEMBER
member.groupObject被踢者所在的群
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?操作的管理员或群主信息,当null时为Bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER或ADMINISTRATOR
operator.groupObject同member.group

成员主动离群(该成员不是Bot)

{
  "type": "MemberLeaveEventQuit",
  "member": {
    "id": 123456789,
    "memberName": "我是被踢的",
    "permission": "MEMBER",
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    }
  }
}
名字类型说明
memberObject退群群员的信息
member.idLong退群群员的QQ号
member.memberNameString退群群员的群名片
member.permissionString退群群员在群中的权限,ADMINISTRATOR或MEMBER
member.groupObject退群群员所在的群信息
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER

群名片改动

{
  "type": "MemberCardChangeEvent",
  "origin": "origin name",
  "current": "我是被改名的",
  "member": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"MEMBER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }  
  }
}
名字类型说明
originString原本名片
currentString现在名片
memberObject名片改动的群员的信息
member.idLong名片改动的群员的QQ号
member.memberNameString名片改动的群员的群名片
member.permissionString名片改动的群员在群中的权限,OWNER、ADMINISTRATOR或MEMBER
member.groupObject名片改动的群员所在群的信息
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER

群头衔改动(只有群主有操作限权)

{
  "type": "MemberSpecialTitleChangeEvent",
  "origin": "origin title",
  "current": "new title",
  "member": {
    "id": 123456789,
    "memberName": "我是被改头衔的",
    "permission": "MEMBER",
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    }
  }
}
名字类型说明
originString原头衔
currentString现头衔
memberObject头衔改动的群员的信息
member.idLong头衔改动的群员的QQ号
member.memberNameString头衔改动的群员的群名片
member.permissionString头衔改动的群员在群中的权限,OWNER、ADMINISTRATOR或MEMBER
member.groupObject头衔改动的群员所在群的信息
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER

成员权限改变的事件(该成员不是Bot)

{
  "type": "MemberPermissionChangeEvent",
  "origin": "MEMBER",
  "current": "ADMINISTRATOR",
  "member": {
    "id": 123456789,
    "memberName": "我是被改权限的",
    "permission": "ADMINISTRATOR",
    "group": {
      "id": 123456789,
      "name": "Miral Technology",
      "permission": "MEMBER"
    }
  }
}
名字类型说明
originString原权限
currentString现权限
memberObject权限改动的群员的信息
member.idLong权限改动的群员的QQ号
member.memberNameString权限改动的群员的群名片
member.permissionString权限改动的群员在群中的权限,ADMINISTRATOR或MEMBER
member.groupObject权限改动的群员所在群的信息
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER

群成员被禁言事件(该成员不是Bot)

{
  "type": "MemberMuteEvent",
  "durationSeconds": 600,
  "member": {
    "id":1234567890,
    "memberName":"我是被取消禁言的",
    "specialTitle":"群头衔",
    "permission":"MEMBER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }
  },
  "operator": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"OWNER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }
  }
}
名字类型说明
durationSecondsLong禁言时长,单位为秒
memberObject被禁言的群员的信息
member.idLong被禁言的群员的QQ号
member.memberNameString被禁言的群员的群名片
member.permissionString被禁言的群员在群中的权限,ADMINISTRATOR或MEMBER
member.groupObject被禁言的群员所在群的信息
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?操作者的信息,当null时为Bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER、ADMINISTRATOR
operator.groupObject同member.group

群成员被取消禁言事件(该成员不是Bot)

{
  "type": "MemberUnmuteEvent",
  "member": {
    "id":1234567890,
    "memberName":"我是被取消禁言的",
    "specialTitle":"群头衔",
    "permission":"MEMBER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }
  },
  "operator": {
    "id":1234567890,
    "memberName":"",
    "specialTitle":"群头衔",
    "permission":"OWNER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }
  }
}
名字类型说明
memberObject被取消禁言的群员的信息
member.idLong被取消禁言的群员的QQ号
member.memberNameString被取消禁言的群员的群名片
member.permissionString被取消禁言的群员在群中的权限,ADMINISTRATOR或MEMBER
member.groupObject被取消禁言的群员所在群的信息
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
operatorObject?操作者的信息,当null时为Bot操作
operator.idLong操作者的QQ号
operator.memberNameString操作者的群名片
operator.permissionString操作者在群中的权限,OWNER、ADMINISTRATOR
operator.groupObject同member.group

群员称号改变

{
  "type": "MemberHonorChangeEvent",
  "member": {
    "id":1234567890,
    "memberName":"我是被取消禁言的",
    "specialTitle":"群头衔",
    "permission":"MEMBER",  // 群成员在群中的权限
    "joinTimestamp":12345678,
    "lastSpeakTimestamp":8765432,
    "muteTimeRemaining":0,
    "group":{
      "id":12345,
      "name":"群名1",
      "permission":"MEMBER" // bot 在群中的权限
    }
  },
  "action": "achieve",
  "honor": "龙王"
}
名字类型说明
memberObject被取消禁言的群员的信息
member.idLong被取消禁言的群员的QQ号
member.memberNameString被取消禁言的群员的群名片
member.permissionString被取消禁言的群员在群中的权限,ADMINISTRATOR或MEMBER
member.groupObject被取消禁言的群员所在群的信息
member.group.idLong群号
member.group.nameString群名
member.group.permissionStringBot在群中的权限,OWNER、ADMINISTRATOR或MEMBER
actionString称号变化行为:achieve获得称号,lose失去称号
honorString称号名称

申请事件

添加好友申请

{
  "type": "NewFriendRequestEvent",
  "eventId": 12345678,
  "fromId": 123456,
  "groupId": 654321,
  "nick": "Nick Name",
  "message": ""
}
名字类型说明
eventIdLong事件标识,响应该事件时的标识
fromIdLong申请人QQ号
groupIdLong申请人如果通过某个群添加好友,该项为该群群号;否则为0
nickString申请人的昵称或群名片
messageString申请消息

用户入群申请(Bot需要有管理员权限)

{
  "type": "MemberJoinRequestEvent",
  "eventId": 12345678,
  "fromId": 123456,
  "groupId": 654321,
  "groupName": "Group",
  "nick": "Nick Name",
  "message": ""
}
名字类型说明
eventIdLong事件标识,响应该事件时的标识
fromIdLong申请人QQ号
groupIdLong申请人申请入群的群号
groupNameString申请人申请入群的群名称
nickString申请人的昵称或群名片
messageString申请消息

Bot被邀请入群申请

{
  "type": "BotInvitedJoinGroupRequestEvent",
  "eventId": 12345678,
  "fromId": 123456,
  "groupId": 654321,
  "groupName": "Group",
  "nick": "Nick Name",
  "message": ""
}
名字类型说明
eventIdLong事件标识,响应该事件时的标识
fromIdLong邀请人(好友)的QQ号
groupIdLong被邀请进入群的群号
groupNameString被邀请进入群的群名称
nickString邀请人(好友)的昵称
messageString邀请消息

其他客户端事件

其他客户端上线

{
  "type": "OtherClientOnlineEvent",
  "client": {
    "id": 1,
    "platform": "WINDOWS"
  },
  "kind": 69899
}
名字类型说明
clientObject其他客户端
client.idLong客户端标识号
client.platformString客户端类型
kindLong?详细设备类型

其他客户端下线

{
  "type": "OtherClientOfflineEvent",
  "client": {
    "id": 1,
    "platform": "WINDOWS"
  }
}
名字类型说明
clientObject其他客户端
client.idLong客户端标识号
client.platformString客户端类型

命令事件

命令被执行

{
  "type": "CommandExecutedEvent",
  "name": "shutdown",
  "friend": null,
  "member": null,
  "args": [
    {
      "type": "Plain",
      "text": "myself"
    }
  ]
}

即执行了 /shutdown myself

名字类型说明
eventIdLong事件标识,响应该事件时的标识
nameString命令名称
friendObject发送命令的好友, 从控制台发送为 null
memberObject发送命令的群成员, 从控制台发送为 null
argsArray指令的参数, 以消息类型传递