Starts a Feishu QR connect session in replace or create mode and reports updated features. Reuse when linking or replacing a Feishu bot from settings.
// Source: https://github.com/HKUDS/nanobot | License: MIT | Copyright 2025-present Xubin Ren and the nanobot contributors
// Provided via justclaw.it.com; keep this notice with the code.
import { ChannelQrConnectFlow } from "@/components/settings/channels/ChannelQrConnectFlow";
import type { NanobotFeaturesPayload } from "@/lib/types";
import { FeishuConnectFlowView, useFeishuConnectLabels } from "./FeishuConnectFlowView";
export function FeishuConnectFlow({
token,
instanceId = "default",
mode = "replace",
idleLabel,
connectRequestId,
onFeaturesUpdate,
}: {
token: string;
instanceId?: string;
mode?: "replace" | "create";
idleLabel?: string;
connectRequestId?: number;
onFeaturesUpdate: (payload: NanobotFeaturesPayload) => void;
}) {
const labels = useFeishuConne
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key