usernein / pyromod

A monkeypatcher add-on for Pyrogram
https://pyromod.pauxis.dev/
GNU Lesser General Public License v3.0
223 stars 70 forks source link

release v3.0 #33

Closed usernein closed 10 months ago

usernein commented 10 months ago

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.