//#region extensions/telegram/src/adapters/config-surface.ts
const telegramConfigSurface = { buildConfigSurface(cfg) {
	const telegram = cfg.channels?.telegram;
	const accounts = telegram?.accounts;
	const defTok = accounts?.default && typeof accounts.default === "object" ? accounts.default.botToken : void 0;
	return {
		enabled: telegram?.enabled,
		botToken: typeof defTok === "string" ? defTok : "",
		allowFrom: telegram?.allowFrom || [],
		groupAllowFrom: telegram?.groupAllowFrom || [],
		apiRoot: telegram?.apiRoot || "",
		debug: telegram?.debug || false,
		dmPolicy: telegram?.dmPolicy || "pairing",
		groupPolicy: telegram?.groupPolicy || "open",
		replyToMode: telegram?.replyToMode || "off",
		streamMode: telegram?.streamMode || "partial",
		historyLimit: telegram?.historyLimit || 50,
		textChunkLimit: telegram?.textChunkLimit || 4e3,
		proxy: telegram?.proxy || "",
		accounts: telegram?.accounts || {}
	};
} };
//#endregion
export { telegramConfigSurface };

//# sourceMappingURL=config-surface.js.map