mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +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,
|
cardToken: string,
|
||||||
card: Record<string, unknown>,
|
card: Record<string, unknown>,
|
||||||
): Promise<SendResult> {
|
): 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 };
|
const body: Record<string, unknown> = { token: cardToken, card };
|
||||||
return feishuRequest(url, "POST", token, body, "card");
|
return feishuRequest(url, "POST", token, body, "card");
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user