Bot Outgoing Segment
Types
Link copied to clipboard
表情消息段
Link copied to clipboard
data class Forward(val nodes: List<BotOutgoingSegment.Forward.Node>, val title: String = "群聊的聊天记录", val preview: List<String> = nodes.take(4).map {
it.senderName + ": " + it.segments.joinToString("")
}, val summary: String = "查看", val prompt: String = "[聊天记录]") : BotOutgoingSegment
合并转发消息段
Link copied to clipboard
data class Image(val raw: ByteArray, val format: ImageFormat, val width: Int, val height: Int, val subType: ImageSubType, val summary: String) : BotOutgoingSegment
图片消息段
Link copied to clipboard
小程序消息段
Link copied to clipboard
提及(At)消息段
Link copied to clipboard
语音消息段
Link copied to clipboard
回复消息段
Link copied to clipboard
文本消息段
Link copied to clipboard
data class Video(val raw: ByteArray, val width: Int, val height: Int, val duration: Long, val thumb: ByteArray, val thumbFormat: ImageFormat) : BotOutgoingSegment
视频消息段