mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-20 17:13:49 +00:00
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:
1 parent
832718a238
commit
4c1ec472af
1 file changed
+2
-1
@@ -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");
|
||||
}
|
||||
Reference in new issue
Block a user