diff --git a/README.md b/README.md index 7840429a..5f7d12af 100644 --- a/README.md +++ b/README.md @@ -142,10 +142,19 @@ Set these environment variables before starting `codexapp`: ```bash export TELEGRAM_BOT_TOKEN="" +export TELEGRAM_ALLOWED_USER_IDS="," export TELEGRAM_DEFAULT_CWD="$PWD" # optional, defaults to current working directory npx codexapp ``` +`TELEGRAM_ALLOWED_USER_IDS` is required for safe access. Only allowlisted Telegram user IDs can use the bridge. If no allowed user IDs are configured, incoming Telegram messages are rejected. + +To find your Telegram user ID: + +1. Send a message to your bot. +2. Run `curl "https://api.telegram.org/bot/getUpdates"`. +3. Read `message.from.id` from the returned update payload. + Bot commands: - `/newthread` create and map a new Codex thread for this Telegram chat diff --git a/src/App.vue b/src/App.vue index 08d981a4..1109d4e2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -68,9 +68,19 @@ @export-thread="onExportThread" /> -