Repository navigation
Telegram channel: a thread sends you a result when you ask, and you answer from the chat - #2
Open
leorivastech wants to merge 1 commit into
Open
leorivastech wants to merge 1 commit into
leorivastech wants to merge 1 commit into
Conversation
Thread transfer impact
This comment will update automatically after the next completed run. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is not a notification system. I have read "notifications are an anti-pattern" and I am not asking to be pinged when something happens. Nothing here fires on its own. The agent sends something only when you tell it to ("send me the report on Telegram when you finish"), and what arrives is the result itself, a file or a message you can act on, not an alert that pulls you back into the app.
Why
At work we use Telegram for everything. When an agent produces something worth showing, a PDF, a chart, a short video, I open T3 Code, find the file and forward it by hand. And when someone answers "ok, now change X", I go back to the app to type it. The chat is already where the conversation is.
What I have working on my fork
It is built, tested, and running on my machine. Set up once in Settings → Integrations → Telegram with your own bot from BotFather:
Send. One MCP tool,
telegram_send: text, or a file that already exists. Images and MP4 show inline, anything else arrives as a document.Answer. Reply to any message the bot sent and your text becomes a new turn in the thread that sent it, even if that thread was idle.
Pick a thread.
/threadslists the open threads, one message each. Reply to the one you want.Groups can receive. Add the bot to a group, add the id it posts to Settings, and ask for it by name: "send it to the team group". This part is written and covered by tests; I have not tried it against a real group yet.
95-second recording. The settings step is stills from a test build; the rest is a real-time screen recording:
t3-telegram-demo-small.mp4
What I left out on purpose
How far this could go
Not part of this change, only where the same shape leads:
How it fits the codebase
One server service (long polling, so nothing has to be reachable from outside), one MCP toolkit, one settings section, one small table in the existing SQLite. The bot token lives in the secret store, like the Bitbucket tokens. A thread sends files from its own workspace; only a full-access thread can send a file from elsewhere on the machine. Mobile needs no new screen. Focused tests and a user guide are written.
Where the code is
feature/telegram-channel: upstreammainas of October 7, 2026 plus this change, one commit (41 files, about 3,490 added lines, tests included).mods-telegram: the same plus my mods, which is what I run.Server tests for the channel, the tool, the settings and the migrations pass on this branch (237), and the web settings tests (593).