feat: support card miniapp

This commit is contained in:
手瓜一十雪
2024-05-25 11:35:08 +08:00
parent 2d70a40633
commit 5eef1739ae
46 changed files with 58 additions and 55 deletions

View File

@@ -133,8 +133,8 @@ const _handlers: {
return SendMsgElementConstructor.video(path, fileName, thumb);
},
[OB11MessageDataType.miniapp]: async ({ data: any }) => (await SendMsgElementConstructor.miniapp()) as SendArkElement,
[OB11MessageDataType.miniapp]: async ({ data: any }) => SendMsgElementConstructor.miniapp(),
[OB11MessageDataType.voice]: async (sendMsg, context) =>
SendMsgElementConstructor.ptt((await handleOb11FileLikeMessage(sendMsg, context)).path),