diff --git a/routes/bot/groupAgent/index.ts b/routes/bot/groupAgent/index.ts index 43ae4d4..dfc8869 100644 --- a/routes/bot/groupAgent/index.ts +++ b/routes/bot/groupAgent/index.ts @@ -32,7 +32,8 @@ const sendGroupSelector = async ({ const sendFunctionSelector = async ({ logger, larkCard, - larkBody: { actionOption }, + larkService, + larkBody: { actionOption, messageId }, }: Context.Data) => { const cardGender = larkCard.child("groupAgent") logger.debug(`Action option: ${JSON.stringify(actionOption)}`) @@ -50,11 +51,16 @@ const sendFunctionSelector = async ({ value: "summary-gpt-4o|总结消息", }, ] - return cardGender.genCard("functionSelector", { - functions, - chatId, - chatName, - }) + + larkService.message.update( + messageId, + cardGender.genCard("functionSelector", { + functions, + chatId, + chatName, + }) + ) + return {} } /** diff --git a/routes/bot/index.ts b/routes/bot/index.ts index b432979..d5084ac 100644 --- a/routes/bot/index.ts +++ b/routes/bot/index.ts @@ -27,5 +27,5 @@ export const manageBotReq = async (ctx: Context.Data): Promise => { if (larkBody.isActionMsg) return await manageActionMsg(ctx) // 返回成功响应 - return ctx.genResp.custom("{}") + return ctx.genResp.ok() }