From 6413b0ff8291b4d4a973f28086ca9d90f2c40163 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Sat, 18 May 2024 16:34:12 +0800 Subject: [PATCH] fix: Send msg timeout minimum --- src/onebot11/action/msg/SendMsg.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onebot11/action/msg/SendMsg.ts b/src/onebot11/action/msg/SendMsg.ts index 1bda604..841b07e 100644 --- a/src/onebot11/action/msg/SendMsg.ts +++ b/src/onebot11/action/msg/SendMsg.ts @@ -327,7 +327,7 @@ export async function sendMsg( } } log('发送消息总大小', totalSize, 'bytes') - let timeout = ((totalSize / 1024 / 512) * 1000) || 5000 // 512kb/s + let timeout = ((totalSize / 1024 / 512) * 1000) + 5000 // 512kb/s log('设置消息超时时间', timeout) const returnMsg = await NTQQMsgApi.sendMsg(peer, sendElements, waitComplete, timeout) log('消息发送结果', returnMsg)