Skip to main content

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

Metadata

Release files for claude-telegram-bot 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-telegram-bot 0.3.1
File Size Uploaded Provenance Actions
claude_telegram_bot-0.3.1.tar.gz 62.0 kB Without provenance Details for claude_telegram_bot-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for claude-telegram-bot 0.3.1
File Interpreter ABI Platform Actions
claude_telegram_bot-0.3.1-py3-none-any.whl Python 3 none any Details for claude_telegram_bot-0.3.1-py3-none-any.whl

Total release size: 78.1 kB

Release files / claude_telegram_bot-0.3.1.tar.gz

Download URL claude_telegram_bot-0.3.1.tar.gz
Size 62.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e0371bd4970b6b21422ac51943edec7b7cf7506b5fcb8e6f54d865c2ed6e3888
BLAKE2b-256 checksum
How to use checksums
6b4f4d88d484c13bec257134f459aecd11ed677253db848f807b728b6e5de8c5
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / claude_telegram_bot-0.3.1-py3-none-any.whl

Download URL claude_telegram_bot-0.3.1-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d3302e2b2f92b601355af0f0d068e2eae5613d1784dba8a7e76275fe3d1076d
BLAKE2b-256 checksum
How to use checksums
b5a5318968b483d742cf8efd11551f77bd57070b4e69d70c788a8119e772d1df
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for claude-telegram-bot 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page