chore: update larkService message in sendFunctionSelector
This commit is contained in:
parent
366766104c
commit
c41f6744fa
@ -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 {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27,5 +27,5 @@ export const manageBotReq = async (ctx: Context.Data): Promise<Response> => {
|
||||
if (larkBody.isActionMsg) return await manageActionMsg(ctx)
|
||||
|
||||
// 返回成功响应
|
||||
return ctx.genResp.custom("{}")
|
||||
return ctx.genResp.ok()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user