feat(telegram): Private Chat Topics with functional skill binding (#2598)#3163
Merged
Conversation
- Add auto_skill field to MessageEvent for topic-skill bindings - Gateway auto-loads the bound skill on new sessions via _load_skill_payload - Skill content is injected into the first message (same as /skill commands) - Subsequent messages in the session see it in conversation history - Clean chat_topic (no [skill: ...] suffix) — skill flows via auto_skill field - Add 3 tests for _build_message_event auto_skill behavior
Documents DM topic configuration, skill binding, session isolation, and how topic creation/persistence works. Updates the Recent Bot API Features section to include Bot API 9.4.
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
Salvages PR #3005 by web3blind — Telegram Private Chat Topics support (Bot API 9.4, February 2026). Cherry-picked onto current main with functional skill binding added on top.
Closes #2598
What changed
From PR #3005 (web3blind)
createForumTopic— Bot API 9.4 allows this in private chatsplatforms.telegram.extra.dm_topicsthread_idsaved back to config.yaml after creation, preventing duplicates on restartbuild_session_keythread_id supportAdded: Functional skill binding
The original PR had a cosmetic skill hint (
[skill: name]inchat_topictext). This follow-up makes it actually work:auto_skillfield onMessageEvent— telegram adapter sets it from the topic'sskillconfig_load_skill_payload+_build_skill_message(same infrastructure as/skill-nameslash commands)chat_topic— topic name without the[skill: ...]suffix; skill flows through the dedicated fieldConfiguration
Test results