Telegram bot for interacting with Claude Code CLI
Project description
Claude Telegram Bot
Telegram bot for interacting with Claude Code CLI
Installation
pip install claude-telegram-bot
Configuration
Configuration priority: CLI > ENV > config file > defaults
Config File
Create ~/.config/claude-tg-bot.toml:
[telegram]
bot_token = "your-telegram-bot-token"
admin_user_id = 123456789
allowed_user_ids = [123456789]
[claude]
path = "/home/zhangchi/.local/bin/claude"
timeout = 120
[data]
dir = "~/.cache/claude-tg-bot"
Environment Variables
BOT_TOKEN: Telegram bot tokenADMIN_USER_ID: Admin user IDALLOWED_USER_IDS: Comma-separated user IDsCLAUDE_PATH: Path to Claude CLICLAUDE_TIMEOUT: Command timeout in secondsDATA_DIR: Data directory
CLI Arguments
claude-tg-bot --help
Usage
claude-tg-bot --bot-token YOUR_TOKEN
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
claude_telegram_bot-0.2.0.tar.gz
(19.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_telegram_bot-0.2.0.tar.gz.
File metadata
- Download URL: claude_telegram_bot-0.2.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Rocky Linux","version":"9.5","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22af3682d0d9b9da56062a29198a2bf47fe2dde05213c2ee07e3386b4d476bf6
|
|
| MD5 |
66ea69592c2d574a516097a45b4a7285
|
|
| BLAKE2b-256 |
5e68a9109bc210a301c2d3b2ab4f6d688df5913121068e0ded004e6b5ef17b78
|
File details
Details for the file claude_telegram_bot-0.2.0-py3-none-any.whl.
File metadata
- Download URL: claude_telegram_bot-0.2.0-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Rocky Linux","version":"9.5","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
202e3e9a662c9cb1c959f987c68679fbc8eb160b6804e52eee2a6b8eee0f6e23
|
|
| MD5 |
62b0bcf5ed300215b0ed237b51d8fc9a
|
|
| BLAKE2b-256 |
8310f218cafe89dbfc39ef78a26c4a87f78a800ccfe566a88510b311f6fe3c62
|