sendGroupMessage

suspend fun Bot.sendGroupMessage(groupUin: Long, clientSequence: Long = Random.nextLong(), random: Int = Random.nextInt(), segments: List<BotOutgoingSegment>): BotOutgoingMessageResult(source)

发送群消息

Parameters

groupUin

群号

clientSequence

客户端消息序列号,默认随机生成,可用于 IM 开发

random

消息随机数,默认随机生成,可用于 IM 开发

segments

消息段列表


inline suspend fun Bot.sendGroupMessage(groupUin: Long, clientSequence: Long = Random.nextLong(), random: Int = Random.nextInt(), builderAction: BotOutgoingMessageBuilder.() -> Unit): BotOutgoingMessageResult(source)

发送群消息

Parameters

groupUin

群号

clientSequence

客户端消息序列号,默认随机生成,可用于 IM 开发

random

消息随机数,默认随机生成,可用于 IM 开发

builderAction

消息段构建器