Telegram Bot
Run commands from your phone via Telegram.
Setup
- Message @BotFather on Telegram
- Send
/newbotand follow the prompts - Copy the bot token to your
.envfile - Get your user ID from @userinfobot
- Add your user ID to
TELEGRAM_ALLOWED_USERS
TELEGRAM_BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrsTUVwxyz
TELEGRAM_ALLOWED_USERS=987654321
Predefined Commands
| Command | Description |
|---|---|
/start | Show help message |
/help | List all commands |
/status | Git status |
/pull | Git pull |
/log | Recent commits |
/diff | Git diff summary |
/ls | List files |
/branch | List branches |
/build | Run build |
/test | Run tests |
/dev | Start dev server |
/url | Show web terminal URL |
/stop_proc | Stop background process |
Raw Commands
Send any command directly (without /) and it will be executed:
ls -la
git log --oneline -10
npm run build
cat package.json
LLM Mode
Enable natural language mode with /llm:
/llm
> show me files changed today
> find all TODO comments
> what's in the config file?
See LLM Mode for more details.
Security
- Only users in
TELEGRAM_ALLOWED_USERScan use the bot - Unauthorized users will see their user ID (so you can add them)
- All commands run with your user permissions