Skip to content

Conversation

WubbaLubbaDubDubDev
Copy link
Contributor

This PR fixes an issue in the get_dialogs() method, where the function could enter an infinite loop or repeatedly yield the same dialogs, especially when certain Dialog entries were malformed or had missing data.

WubbaLubbaDubDubDev and others added 5 commits August 19, 2025 18:30
Fix infinite loop in get_dialogs() by preventing repeated dialogs

- Added tracking of seen dialog IDs to avoid yielding duplicates
- Added check for None top_message to safely stop pagination
- Preserved support for limit, pinned_only, and chat_list parameters
- Ensured correct offset updates for reliable pagination
fix: skip dialogs with no parsed chat to avoid errors
@SpEcHiDe SpEcHiDe merged commit 8ac84cd into TelegramPlayground:dev Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants