Telegram ACP
telegram-acp exposes a small ACP relay package for a Kurigram userbot.
Flow:
- An ACP client sends a prompt turn with text and/or media blocks.
- The relay sends those blocks to a configured Telegram chat.
- Incoming messages from that Telegram chat are streamed back to ACP as
session/updateevents.
Supported directions:
- ACP -> Telegram: text, image, video, gif, file
- Telegram -> ACP: text, image, video, gif, file
Notes:
- The relay is designed for one target chat and one active ACP conversation at a time.
- Telegram videos/gifs/files are returned to ACP as embedded binary resources.
- Telegram photos are returned as ACP image blocks.
- Incoming Telegram messages are acknowledged with raw MTProto
ReadHistory.
Credentials
The runtime reads credentials from .env:
TELEGRAM_API_ID=...
TELEGRAM_API_HASH=...
You can create a Telegram app from here to obtain an API id and hash.
CLI
uv run telegram-acp --target-chat @target_bot --session-name telegram_acp
Useful flags:
--target-chat @bot_or_chat_id--session-name telegram_acp--first-response-timeout 120--idle-timeout 4--dotenv-path .env--workdir .
The command runs over ACP stdio, so an ACP-capable client should spawn it directly.
SDK
Programmatic use lives under src/telegram_acp:
telegram_acp.build_bridge(...)telegram_acp.build_agent(...)telegram_acp.run_telegram_acp_agent(...)
Metadata
Release files for telegram-acp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| telegram_acp-0.1.0.tar.gz | 22.6 kB | With provenance | Details for telegram_acp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| telegram_acp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for telegram_acp-0.1.0-py3-none-any.whl |
Total release size: 44.5 kB
Release files / telegram_acp-0.1.0.tar.gz
| Download URL | telegram_acp-0.1.0.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc042b1bcb3437ac39b5b7478c511417a7f928f7c7114dc862e1722ef62753b7
|
|
BLAKE2b-256 checksum How to use checksums |
7c13d4a000a2da535032210d8d73f4d90c504c06653ce9d8be449a87997692fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logRelease files / telegram_acp-0.1.0-py3-none-any.whl
| Download URL | telegram_acp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
295fa5767a862724d130e1cebd6cc1be69fba423a334d726cc4d021c3ace66e5
|
|
BLAKE2b-256 checksum How to use checksums |
32659c04320b06235e597b595b73f841069a72fc4b0ada889708bf3e48907edc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logSecurity for telegram-acp 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for telegram_acp-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 5, 2026.
Transparency logA 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.