-
Notifications
You must be signed in to change notification settings - Fork 143
fix: detect manually marked unread chats in list_chats #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
chigwell
merged 11 commits into
chigwell:main
from
BayramAnnakov:fix/unread-mark-detection
Dec 26, 2025
Merged
fix: detect manually marked unread chats in list_chats #46
chigwell
merged 11 commits into
chigwell:main
from
BayramAnnakov:fix/unread-mark-detection
Dec 26, 2025
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
Previously list_chats only checked dialog.unread_count, missing chats that were manually marked as unread via Telegram's "mark as unread" feature. Now also checks dialog.dialog.unread_mark flag: - unread_count > 0: shows "Unread: N" - unread_mark = True: shows "Unread: marked" This matches the behavior of Telegram's "Unread" folder filter. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
chigwell
requested changes
Dec 26, 2025
21e1ed6 to
6b1f4cd
Compare
Co-authored-by: Eugene Evstafev <[email protected]>
Co-authored-by: Eugene Evstafev <[email protected]>
Co-authored-by: Eugene Evstafev <[email protected]>
Co-authored-by: Eugene Evstafev <[email protected]>
Co-authored-by: Eugene Evstafev <[email protected]>
Co-authored-by: Eugene Evstafev <[email protected]>
Co-authored-by: Eugene Evstafev <[email protected]>
Co-authored-by: Eugene Evstafev <[email protected]>
The individual line suggestions created invalid Python when applied separately. Combined the ternary expression properly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
chigwell
approved these changes
Dec 26, 2025
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
Fixes list_chats to detect chats that were manually marked as unread via Telegram's "mark as unread" feature.
Problem
Previously list_chats only checked dialog.unread_count, which misses chats marked unread manually. These chats appear in Telegram's "Unread" folder but were not reported by the MCP.
Solution
Now also checks dialog.dialog.unread_mark flag:
Test Plan
Generated with Claude Code