Skip to main content

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 token
  • ADMIN_USER_ID: Admin user ID
  • ALLOWED_USER_IDS: Comma-separated user IDs
  • CLAUDE_PATH: Path to Claude CLI
  • CLAUDE_TIMEOUT: Command timeout in seconds
  • DATA_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.1.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_telegram_bot-0.2.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file claude_telegram_bot-0.2.1.tar.gz.

File metadata

  • Download URL: claude_telegram_bot-0.2.1.tar.gz
  • Upload date:
  • Size: 19.7 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

Hashes for claude_telegram_bot-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1f764231fe38d4a8d6c1bda1afe80f4cf4b73a2edf657b8a306928fba869e8bc
MD5 4b6f603ae49ff65e302faf7c902b96d6
BLAKE2b-256 1dca733e3ce7da3b37d6d1611725ed82adc5dcdc871d5d350a3218cdc14345e4

See more details on using hashes here.

File details

Details for the file claude_telegram_bot-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: claude_telegram_bot-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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

Hashes for claude_telegram_bot-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9cd655879969f76f3979f473642ef7ced25559ca6f63aba515b077b0dd6caaca
MD5 e45372bd70c48365fcb7ef4d2f9c4e3a
BLAKE2b-256 a7014691331faf5103d6ecd0d80edaa248a2697f84d60ac87008a376bc5ee3d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page