Files
openclaw/extensions/line/src/quick-reply-fallback.ts
2026-05-01 05:06:11 -07:00

11 lines
354 B
TypeScript

export function buildLineQuickReplyFallbackText(labels: readonly string[] | undefined): string {
const normalized = (labels ?? [])
.map((label) => label.trim())
.filter(Boolean)
.slice(0, 13);
if (normalized.length === 0) {
return "Choose an option.";
}
return `Options:\n${normalized.map((label) => `- ${label}`).join("\n")}`;
}