optimize: 不支持的消息类型提示

This commit is contained in:
linyuchen 2024-04-27 19:06:08 +08:00
parent 3e50629462
commit eb7fafeabf

View File

@ -233,7 +233,7 @@ export async function createSendElements(messageData: OB11MessageData[], group:
export async function sendMsg(peer: Peer, sendElements: SendMessageElement[], deleteAfterSentFiles: string[], waitComplete = true) {
if (!sendElements.length) {
throw ('消息体无法解析');
throw ('消息体无法解析, 请检查是否发送了不支持的消息类型');
}
const returnMsg = await NTQQMsgApi.sendMsg(peer, sendElements, waitComplete, 20000);
try {