sendToChannel

suspend fun Message.sendToChannel(bot: KookBot, targetId: String, quote: String? = null, nonce: String? = null, tempTargetId: String? = null, defaultTempTargetId: String? = null): KookMessageReceipt?(source)

将消息发送给目标。此消息如果是个消息链,则有可能会被拆分为多条消息发送, 届时将会返回 KookAggregatedMessageReceipt.

消息的发送会更倾向于整合为一条或较少条消息,如果出现多条消息, quotenoncetempTargetId 会被 所有 可能产生的消息重复使用。

其中,部分消息元素可能会覆盖默认值:

Return

消息最终地发送结果回执。如果为 null 则代表没有有效消息发送。