import{_ as t}from"./plugin-vue_export-helper-c27b6911.js";import{o as d,c as e,e as r}from"./app-e0095480.js";const a={},h=r('

所有上报

所有上报事件都包含以下字段:

字段类型说明
timeint64时间戳
self_idint64机器人QQ
post_typestring上报类型

提示

post_typemessagemessage_sent 时,数据是一致的。
区别在于 message 是收到的消息,message_sent 是发送的消息。

默认情况下,Shamrock 只会上报 message 类型的消息。

事件类型

PostType

类型说明
message收到消息
message_sent发送消息
notice通知
request请求

MessageType

类型说明
private私聊消息
group群消息

MessageSubType

类型说明
friend好友消息
normal群消息
anonymous匿名消息
group群临时消息
group_self群消息(自身操作)
notice系统提示

NoticeType

类型说明
group_upload群文件上传
group_admin群管理员变动
group_decrease群成员减少
group_increase群成员增加
group_ban群禁言
group_recall群消息撤回
group_card群成员名片变动
friend_add好友添加
friend_recall好友撤回
offline_file接收到离线文件包
client_status客户端状态
essence精华消息
notify系统通知

NoticeNotifySubType

类型说明
honor群荣誉变更
poke戳一戳
lucky_king运气王
title群头衔变更

RequestType

类型说明
friend好友请求
group群请求

数据结构

MessageSender

字段类型说明
user_idint64发送者 QQ 号
nicknamestring发送者昵称

如果是群消息,还会包含以下字段:

字段类型说明
cardstring发送者群名片
levelstring发送者等级
rolestring发送者角色
titlestring发送者头衔

如果是频道消息,则会包含以下字段:

字段类型说明
tiny_idstring发送者TinyId

Post_Message_TempSource

类型来源
0群聊
1QQ咨询
2查找
3QQ电影
4热聊
6验证消息
7多人聊天
8约会
9通讯录
',26),s=[h];function o(i,n){return d(),e("div",null,s)}const b=t(a,[["render",o],["__file","general-data.html.vue"]]);export{b as default};