feat: support mini app sign

This commit is contained in:
手瓜一十雪
2024-05-24 23:24:10 +08:00
parent e7de672c36
commit 4ab5fb3959
6 changed files with 47 additions and 25 deletions

View File

@@ -5,6 +5,7 @@ import {
Group,
IdMusicSignPostData,
NTQQFileApi,
SendArkElement,
SendMessageElement,
SendMsgElementConstructor
} from '@/core';
@@ -132,7 +133,8 @@ const _handlers: {
return SendMsgElementConstructor.video(path, fileName, thumb);
},
[OB11MessageDataType.miniapp]: async ({ data: any }) => (await SendMsgElementConstructor.miniapp()) as SendArkElement,
[OB11MessageDataType.voice]: async (sendMsg, context) =>
SendMsgElementConstructor.ptt((await handleOb11FileLikeMessage(sendMsg, context)).path),