send Friend Message
suspend fun Bot.sendFriendMessage(friendUin: Long, clientSequence: Long = Random.nextLong(), random: Int = Random.nextInt(), segments: List<BotOutgoingSegment>): BotOutgoingMessageResult(source)
发送好友消息
Parameters
friend Uin
好友 QQ 号
client Sequence
客户端消息序列号,默认随机生成,可用于 IM 开发
random
消息随机数,默认随机生成,可用于 IM 开发
segments
消息段列表
inline suspend fun Bot.sendFriendMessage(friendUin: Long, clientSequence: Long = Random.nextLong(), random: Int = Random.nextInt(), builderAction: BotOutgoingMessageBuilder.() -> Unit): BotOutgoingMessageResult(source)
发送好友消息
Parameters
friend Uin
好友 QQ 号
client Sequence
客户端消息序列号,默认随机生成,可用于 IM 开发
random
消息随机数,默认随机生成,可用于 IM 开发
builder Action
消息段构建器