chore(telegram): format accounts config merge block

This commit is contained in:
Brian Le
2026-03-01 21:14:37 -05:00
committed by Peter Steinberger
parent 0bcbd749ba
commit 2824e10f68

View File

@@ -84,8 +84,11 @@ function resolveAccountConfig(
}
function mergeTelegramAccountConfig(cfg: OpenClawConfig, accountId: string): TelegramAccountConfig {
const { accounts: _ignored, groups: channelGroups, ...base } = (cfg.channels?.telegram ??
{}) as TelegramAccountConfig & { accounts?: unknown };
const {
accounts: _ignored,
groups: channelGroups,
...base
} = (cfg.channels?.telegram ?? {}) as TelegramAccountConfig & { accounts?: unknown };
const account = resolveAccountConfig(cfg, accountId) ?? {};
// In multi-account setups, channel-level `groups` must NOT be inherited by