From eeb15ea5642dc3403eb5d885885edd58521b60f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Mon, 14 Oct 2024 21:49:42 +0800 Subject: [PATCH] fix: #429 --- src/onebot/api/msg.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/onebot/api/msg.ts b/src/onebot/api/msg.ts index 0ab90a60..25073258 100644 --- a/src/onebot/api/msg.ts +++ b/src/onebot/api/msg.ts @@ -112,6 +112,7 @@ export class OneBotMsgApi { return { type: OB11MessageDataType.image, data: { + summary: element.summary, file: encodedFileId, sub_type: element.picSubType, file_id: encodedFileId, @@ -166,7 +167,7 @@ export class OneBotMsgApi { return { type: OB11MessageDataType.face, data: { - id: element.faceIndex.toString(), + id: element.faceIndex.toString() }, }; } @@ -184,6 +185,7 @@ export class OneBotMsgApi { return { type: OB11MessageDataType.image, data: { + summary: _.faceName, // 商城表情名称 file: 'marketface', file_id: FileNapCatOneBotUUID.encode(peer, msg.msgId, elementWrapper.elementId, "." + _.key + ".jpg"), path: url,