ACP bridge for a Telegram userbot backed chat
Project description
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(...)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 telegram_acp-0.1.0.tar.gz.
File metadata
- Download URL: telegram_acp-0.1.0.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc042b1bcb3437ac39b5b7478c511417a7f928f7c7114dc862e1722ef62753b7
|
|
| MD5 |
9d0746508ba182b719a646d5e7c24f65
|
|
| BLAKE2b-256 |
7c13d4a000a2da535032210d8d73f4d90c504c06653ce9d8be449a87997692fc
|
Provenance
The following attestation bundles were made for telegram_acp-0.1.0.tar.gz:
Publisher:
publish.yml on vcoderun/telegram-acp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
telegram_acp-0.1.0.tar.gz -
Subject digest:
cc042b1bcb3437ac39b5b7478c511417a7f928f7c7114dc862e1722ef62753b7 - Sigstore transparency entry: 1734328135
- Sigstore integration time:
-
Permalink:
vcoderun/telegram-acp@2b1bd70d1caf6f437e8cf0e85fde0d02653785b1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/vcoderun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2b1bd70d1caf6f437e8cf0e85fde0d02653785b1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file telegram_acp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: telegram_acp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
295fa5767a862724d130e1cebd6cc1be69fba423a334d726cc4d021c3ace66e5
|
|
| MD5 |
202445fe04d1499e920254eb1cb85c0b
|
|
| BLAKE2b-256 |
32659c04320b06235e597b595b73f841069a72fc4b0ada889708bf3e48907edc
|
Provenance
The following attestation bundles were made for telegram_acp-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on vcoderun/telegram-acp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
telegram_acp-0.1.0-py3-none-any.whl -
Subject digest:
295fa5767a862724d130e1cebd6cc1be69fba423a334d726cc4d021c3ace66e5 - Sigstore transparency entry: 1734328242
- Sigstore integration time:
-
Permalink:
vcoderun/telegram-acp@2b1bd70d1caf6f437e8cf0e85fde0d02653785b1 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/vcoderun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2b1bd70d1caf6f437e8cf0e85fde0d02653785b1 -
Trigger Event:
push
-
Statement type: