Files
clawdbot/src/config
danielz1z f42b12646d fix: handle object-format capabilities in normalizeCapabilities
When capabilities is configured as an object (e.g., { inlineButtons: "dm" })
instead of a string array, normalizeCapabilities() would crash with
"capabilities.map is not a function".

This can occur when using the new Telegram inline buttons scoping feature:
  channels.telegram.capabilities.inlineButtons = "dm"

The fix adds an Array.isArray() guard to return undefined for non-array
capabilities, allowing channel-specific handlers (like
resolveTelegramInlineButtonsScope) to process the object format separately.

Fixes crash when using object-format TelegramCapabilitiesConfig.
2026-01-17 05:11:57 +00:00
..
2026-01-14 15:02:19 +00:00
2026-01-14 15:02:19 +00:00
2026-01-15 04:06:11 +00:00
2026-01-15 06:18:44 +00:00
2026-01-14 15:02:19 +00:00
2026-01-17 04:13:06 +00:00
2026-01-16 09:01:25 +00:00
2026-01-15 02:42:44 +00:00
2026-01-16 05:28:40 +00:00
2026-01-17 01:31:57 +00:00
2026-01-17 01:31:57 +00:00