sendToDirectByChatCode

suspend fun Message.sendToDirectByChatCode(bot: KookComponentBot, chatCode: ID, quote: ID? = null, nonce: String? = null, tempTargetId: ID? = null): KookMessageReceipt?

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

消息的发送会更倾向于整合为一条或较少条消息,如果出现多条消息, 则 quote 会只被第一条消息所使用,而 noncetempTargetId 则会重复使用。

Return

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