Skip to content

接收消息

共有字段如下:

字段名类型描述
peer_idint64好友 QQ 号或群号
message_seqint64消息序列号
sender_idint64发送者 QQ 号
timeint64消息 Unix 时间戳(秒)
segmentsArray<IncomingSegment>消息段列表
message_scenestring类型标识符

不同的 message_scene 值对应不同的附加字段,具体如下:

friend 好友消息

字段名类型描述
friendFriend好友信息
client_seqint64客户端序列号

group 群消息

字段名类型描述
groupGroup群信息
group_memberGroupMember群成员信息

temp 临时会话消息

字段名类型描述
groupGroup临时会话发送者的所在的群信息(可选