Claude Telegram Bot
Telegram bot for interacting with Claude Code via Claude Agent SDK
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]
timeout = 120
[data]
dir = "~/.cache/claude-tg-bot"
Note: The claude.path config is no longer needed - the SDK automatically bundles Claude Code CLI.
Environment Variables
BOT_TOKEN: Telegram bot tokenADMIN_USER_ID: Admin user IDALLOWED_USER_IDS: Comma-separated user IDsCLAUDE_TIMEOUT: Command timeout in secondsDATA_DIR: Data directory
CLI Arguments
claude-tg-bot --help
Usage
claude-tg-bot --bot-token YOUR_TOKEN
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.3.1.tar.gz
(62.0 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.3.1.tar.gz.
File metadata
- Download URL: claude_telegram_bot-0.3.1.tar.gz
- Upload date:
- Size: 62.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"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 |
e0371bd4970b6b21422ac51943edec7b7cf7506b5fcb8e6f54d865c2ed6e3888
|
|
| MD5 |
e3faa88a042a19298a9cddb87b7f7ad9
|
|
| BLAKE2b-256 |
6b4f4d88d484c13bec257134f459aecd11ed677253db848f807b728b6e5de8c5
|
File details
Details for the file claude_telegram_bot-0.3.1-py3-none-any.whl.
File metadata
- Download URL: claude_telegram_bot-0.3.1-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"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 |
0d3302e2b2f92b601355af0f0d068e2eae5613d1784dba8a7e76275fe3d1076d
|
|
| MD5 |
d3c0a20839b0588e158ce5e01357dfc8
|
|
| BLAKE2b-256 |
b5a5318968b483d742cf8efd11551f77bd57070b4e69d70c788a8119e772d1df
|