|
|
@@ -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')
|