Skip to Content
🎉 Milky 1.0 草案正在征求意见阶段,我们需要你的声音! 🎉
结构体发送消息段

发送消息段 (OutgoingSegment)

字段名类型描述
typestring类型区分字段
dataobjecttype 有关

data 在不同 type 下的具体类型如下:

text 文本消息段

字段名类型描述
textstring文本内容

mention 提及消息段

字段名类型描述
user_idint64提及的 QQ 号

mention_all 提及全体消息段

此对象无字段,请传入 {}

face 表情消息段

字段名类型描述
face_idstring表情 ID

reply 回复消息段

字段名类型描述
message_seqint64被引用的消息序列号

image 图片消息段

字段名类型描述
uristring文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式
summarystring (optional)图片预览文本
sub_type"normal" | "sticker"图片类型

record 语音消息段

字段名类型描述
uristring文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式

video 视频消息段

字段名类型描述
uristring文件 URI,支持 `file://` `http(s)://` `base64://` 三种格式
thumb_uristring (optional)封面图片 URI

forward 合并转发消息段

字段名类型描述
messagesOutgoingForwardedMessage[]合并转发消息段