summaryrefslogtreecommitdiff
path: root/external_plugins/telegram/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'external_plugins/telegram/server.ts')
-rw-r--r--external_plugins/telegram/server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/external_plugins/telegram/server.ts b/external_plugins/telegram/server.ts
index 8acd52a2..98271d0d 100644
--- a/external_plugins/telegram/server.ts
+++ b/external_plugins/telegram/server.ts
@@ -22,7 +22,7 @@ import { readFileSync, writeFileSync, mkdirSync, readdirSync, rmSync, statSync,
import { homedir } from 'os'
import { join, extname, sep } from 'path'
-const STATE_DIR = join(homedir(), '.claude', 'channels', 'telegram')
+const STATE_DIR = process.env.TELEGRAM_STATE_DIR ?? join(homedir(), '.claude', 'channels', 'telegram')
const ACCESS_FILE = join(STATE_DIR, 'access.json')
const APPROVED_DIR = join(STATE_DIR, 'approved')
const ENV_FILE = join(STATE_DIR, '.env')