Telegram bot running server-admin tasks via Claude Agent SDK
kurigram bot with admin check by user IDs from env, per-chat Claude session resume, streaming progress, /model command for model and reasoning effort selection, and systemd deploy script. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
21
.env.example
Normal file
21
.env.example
Normal file
@@ -0,0 +1,21 @@
|
||||
# Telegram API credentials (https://my.telegram.org/apps)
|
||||
TELEGRAM_API_ID=12345
|
||||
TELEGRAM_API_HASH=0123456789abcdef0123456789abcdef
|
||||
|
||||
# Bot token from @BotFather
|
||||
TELEGRAM_BOT_TOKEN=123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
|
||||
|
||||
# Comma-separated Telegram user IDs allowed to use the bot
|
||||
ADMIN_IDS=123456789,987654321
|
||||
|
||||
# Working directory for Claude Code tasks
|
||||
WORK_DIR=/
|
||||
|
||||
# Optional: Anthropic API key. Leave empty to use logged-in Claude Code CLI credentials.
|
||||
ANTHROPIC_API_KEY=
|
||||
|
||||
# Optional: path to the sessions persistence file (default: sessions.json next to the bot)
|
||||
#SESSIONS_FILE=/opt/claude-tg-bot/sessions.json
|
||||
|
||||
# Required for bypassPermissions when running as root
|
||||
IS_SANDBOX=1
|
||||
Reference in New Issue
Block a user