From 8d2e818454db90764dc239f41daa3b5bd8e010ce Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 29 Mar 2020 12:45:41 +0800 Subject: [PATCH] Specify maximum requirements --- .../commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.kt b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.kt index 53c1e009c..e832256b6 100644 --- a/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.kt +++ b/mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/QQAndroidBot.kt @@ -370,7 +370,7 @@ internal abstract class QQAndroidBotBase constructor( @MiraiExperimentalAPI override suspend fun _lowLevelSendLongMessage(groupCode: Long, message: Message) { val chain = message.asMessageChain() - check(chain.toString().length <= 4500 && chain.count { it is Image } <= 50) { "message is too large" } + check(chain.toString().length <= 4500 && chain.count { it is Image } <= 50) { "message is too large. Allow up to 4500 chars or 50 images" } val group = getGroup(groupCode) val source = MessageSourceFromSendFriend(