feat(channels): add resolve command + defaults

This commit is contained in:
Peter Steinberger committed 2026-01-18 01:00:24 +00:00
1 parent b543339373
commit c7ea47e886
60 files changed
+4418 -101

No files matched your search

+2 -1
View File
@@ -163,7 +163,8 @@ export const registerTelegramNativeCommands = ({
}
if (isGroup && useAccessGroups) {
const groupPolicy = telegramCfg.groupPolicy ?? "open";
const defaultGroupPolicy = cfg.channels?.defaults?.groupPolicy;
const groupPolicy = telegramCfg.groupPolicy ?? defaultGroupPolicy ?? "open";
if (groupPolicy === "disabled") {
await bot.api.sendMessage(chatId, "Telegram group commands are disabled.");
return;