Add TELEGRAM_ALLOWED_CHAT_ID option to restrict bot to single user

This commit is contained in:
alexanxin
2026-03-25 15:50:31 +01:00
parent 7bb9c7b81a
commit d2b2d219b1
2 changed files with 17 additions and 0 deletions
+5
View File
@@ -14,3 +14,8 @@ OPENCODE_API_URL=http://127.0.0.1:5050
# Optional: password protect the opencode server
# If set, you must also run: OPENCODE_SERVER_PASSWORD=your-secret opencode serve --port 5050
# OPENCODE_SERVER_PASSWORD=your-secret
# Optional: restrict bot to a single Telegram user
# Get your chat ID by messaging @userinfobot on Telegram
# If not set, the bot responds to anyone
# TELEGRAM_ALLOWED_CHAT_ID=your_chat_id_here