Support topics in private bot chats - #3315
Open
genuss wants to merge 1 commit into
Open
Conversation
This was referenced Aug 3, 2026
|
This PR has had no activity for 7 days and has been marked as stale. If you are still working on it, please push an update or leave a comment; otherwise it will be closed automatically in 7 days. |
Author
|
ping |
This was referenced Aug 11, 2026
This was referenced Aug 13, 2026
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.
📝 Description
Fix Telegram topic handling for private chats with bots that have forum topic mode enabled.
PicoClaw previously recognized topics only when
Chat.IsForumwas true. That works for forum supergroups but not private bot chats, where Telegram instead providesIsTopicMessageandMessageThreadID.This change:
InboundContext.TopicID🗣️ Type of Change
🤖 AI Code Generation
🔗 Related Issue
Follow-up to #3110. The original fix covered Telegram forum supergroups, while this PR covers forum topic mode in private bot chats.
📚 Technical Context (Skip for Docs)
Chat.IsForumfor forum supergroups, but private chats with topic-enabled bots useMessage.IsTopicMessagetogether with a nonzeroMessageThreadID. PicoClaw checked onlyChat.IsForum, causing private-topic messages to lose their thread routing and session context. The fix treats a message as topic-aware when it has a thread ID and eitherChat.IsForumorIsTopicMessageis true.🧪 Test Environment
☑️ Checklist