Conversation
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.
Summary
This release adds BotFather private-chat Thread Mode as a first-class multi-instance mode while keeping classic private DM as the base single-instance mode.
It also makes Thread Mode capability switching hot, keeps activity indication native-only through Telegram active/typing status, removes the separate
telegram.jsonbus switch, and hardens threaded routing, lifecycle, diagnostics, transport, and validation coverage.Why
Operators use
pi-telegramin two legitimate shapes: a simple single-session bot for server/control workflows, and a multi-thread bot for development across several live Pi sessions. The release lets Telegram's own bot mode choose that shape without extra config or hidden process spawning.User-visible behavior
/telegram-connectwith their own thread./reloadas Telegram capability changes.Changed areas
lib/polling.ts,lib/threads.ts,lib/bus-*,lib/routing.ts: Thread Mode capability, leader/follower routing, target bindings, and hot switching.lib/runtime.ts,lib/lifecycle.ts,lib/bindings.ts,lib/commands.ts: native typing/activity and compaction status ownership.lib/telegram-api.ts: Bot API transport with IPv4 fallback and redacted diagnostics.Risk Notes
BACKLOG.md; named-pipe transport paths are implemented and covered where the suite can run them./newremains blocked on upstream Pi API support.Validation
npm run validate— passedgit diff --check— passed