This commit is contained in:
手瓜一十雪
2024-10-14 21:49:42 +08:00
parent 565c820925
commit eeb15ea564

@@ -112,6 +112,7 @@ export class OneBotMsgApi {
return { return {
type: OB11MessageDataType.image, type: OB11MessageDataType.image,
data: { data: {
summary: element.summary,
file: encodedFileId, file: encodedFileId,
sub_type: element.picSubType, sub_type: element.picSubType,
file_id: encodedFileId, file_id: encodedFileId,
@@ -166,7 +167,7 @@ export class OneBotMsgApi {
return { return {
type: OB11MessageDataType.face, type: OB11MessageDataType.face,
data: { data: {
id: element.faceIndex.toString(), id: element.faceIndex.toString()
}, },
}; };
} }
@@ -184,6 +185,7 @@ export class OneBotMsgApi {
return { return {
type: OB11MessageDataType.image, type: OB11MessageDataType.image,
data: { data: {
summary: _.faceName, // 商城表情名称
file: 'marketface', file: 'marketface',
file_id: FileNapCatOneBotUUID.encode(peer, msg.msgId, elementWrapper.elementId, "." + _.key + ".jpg"), file_id: FileNapCatOneBotUUID.encode(peer, msg.msgId, elementWrapper.elementId, "." + _.key + ".jpg"),
path: url, path: url,