fix(feishu): use the card update endpoint

Delayed card updates use the card update endpoint; the config
endpoint cannot update an interaction response.
This commit is contained in:
翅膀 committed 2026-10-23 23:23:18 +08:00
1 parent 832718a238
commit 4c1ec472af
1 file changed
+2 -1
+2 -1
View File
@@ -353,7 +353,8 @@ export async function updateCard(
cardToken: string,
card: Record<string, unknown>,
): Promise<SendResult> {
const url = `${FEISHU_API}/open-apis/interactive/v1/config/update`;
// Delayed update of an interactive card after a callback (`token` from it).
const url = `${FEISHU_API}/open-apis/interactive/v1/card/update`;
const body: Record<string, unknown> = { token: cardToken, card };
return feishuRequest(url, "POST", token, body, "card");
}