-
Notifications
You must be signed in to change notification settings - Fork 80
release v3.0 #33
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
Merged
release v3.0 #33
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
…any_listeners -> get_many_matching_listeners
…rom null listener
* supports pyrogram v1 * Update listen.py forgot, delete comma --------- Co-authored-by: Cezar H <pauxiscezar@gmail.com>
I think using the sent_message statement instead of request is much more descriptive
Co-authored-by: Cezar H <pauxiscezar@gmail.com>
* Update listen.py * Update listen.py * Update utils.py * Changes to be committed: modified: pyromod/listen/listen.py modified: pyromod/utils/utils.py * Changes to be committed: modified: pyromod/utils/utils.py * Changes to be committed: modified: pyromod/utils/utils.py * Changes to be committed: modified: pyromod/utils/utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Update utils.py * Changes to be committed: modified: pyromod/listen/listen.py * Update pyproject.toml * Update poetry.lock * Update poetry.lock * Update pyproject.toml * Update listen.py * Update listen.py --------- Co-authored-by: Cezar H <pauxiscezar@gmail.com>
…any_listeners -> get_many_matching_listeners
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.
Inheritance and Simplified Initialization: Classes like Client, Message, Chat, and User now inherit from their Pyrogram counterparts. Import Client from pyromod directly for easier initialization.
Decorator Renaming: Decorators "patch" and "patchable" are now "patch_into" and "should_patch" for clarity.
Keyword Arguments: Tuple identifiers are removed, enabling direct data specification as keyword arguments in listen and ask methods.
Support for inline_message_id: The listen and ask methods now support the "inline_message_id" parameter.
Improved Error Handling: Pyromod checks if CallbackQuery.chat exists before accessing its ID.
Argument Order Change: Client.ask now follows the same argument order as Client.send_message.
Simplified Internal Logic: Listeners and their state have been refactored for easier maintenance.
Type Hints: Added type hints for better code completion and type checking in IDEs.
Reorganized Structure: Project structure is now more organized for easier maintenance.