Skip to content

Conversation

WubbaLubbaDubDubDev
Copy link
Contributor

This pull request adds support for the can_send_plain parameter to the ChatPermissions class, which controls whether a user can send plain text messages.
The class docstring has also been updated to reflect this new permission.

WubbaLubbaDubDubDev and others added 11 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
add support for can_send_plain permission in chat permissions
Updated the class docstring to document this new permission, ensuring
clarity and consistency with the actual class parameters.
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