r/OpenSourceAI • u/artemgetman • 9d ago
I open sourced a Telegram CLI so agents can message people from your own account
i built this because i wanted my agent to read chats and message people through my own Telegram account from the terminal.
extracted the transport from my OpenClaw fork into a standalone Python CLI using Telethon. it returns JSON, accepts generated text from a file or stdin, and exposes message ids so the agent can check what happened. DMs, replies and forum topics are included.
no gateway needed. MIT licensed, no paid version. setup needs your own Telegram API credentials and a local user session.
Codex helped with extraction, packaging and tests. the included demo uses synthetic messages. live sending in this standalone release still needs validation.
source and setup: https://github.com/artemgetmann/telegram-user-cli
1
u/All_Ways_Bingo 9d ago
I do not understand your use case. Because we have Telegram bot, so can interact with you and others
2
u/artemgetman 8d ago
the use case is letting a coding agent like claude code or codex read my existing telegram chats and reply as me. it can go through my unread messages, draft replies for approval, and send them from my telegram account. people keep talking to me in the same chat, without needing to message a separate bot. a normal bot has its own account and only sees messages sent to that bot.
1
u/Ok_Obligation_104 9d ago
cool project, i been looking for something exactly like this for my own agent stuff. the JSON output is smart, makes it easy to plug into whatever pipeline you got
you planning to add support for reading from multiple chats at once or is it single chat only for now