Files
openclaw/extensions/line/src/quick-reply-fallback.ts
2026-06-04 21:40:44 -04:00

11 lines
465 B
TypeScript

// Line plugin module implements quick reply fallback behavior.
import { normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
export function buildLineQuickReplyFallbackText(labels: readonly string[] | undefined): string {
const normalized = normalizeStringEntries(labels ?? []).slice(0, 13);
if (normalized.length === 0) {
return "Choose an option.";
}
return `Options:\n${normalized.map((label) => `- ${label}`).join("\n")}`;
}