Skip to main content

Telegram bot for interacting with Claude Code via Claude Agent SDK

Project description

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 token
  • ADMIN_USER_ID: Admin user ID
  • ALLOWED_USER_IDS: Comma-separated user IDs
  • 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.3.1.tar.gz (62.0 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.3.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

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

Hashes for claude_telegram_bot-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e0371bd4970b6b21422ac51943edec7b7cf7506b5fcb8e6f54d865c2ed6e3888
MD5 e3faa88a042a19298a9cddb87b7f7ad9
BLAKE2b-256 6b4f4d88d484c13bec257134f459aecd11ed677253db848f807b728b6e5de8c5

See more details on using hashes here.

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

Hashes for claude_telegram_bot-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d3302e2b2f92b601355af0f0d068e2eae5613d1784dba8a7e76275fe3d1076d
MD5 d3c0a20839b0588e158ce5e01357dfc8
BLAKE2b-256 b5a5318968b483d742cf8efd11551f77bd57070b4e69d70c788a8119e772d1df

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