diff --git a/pyrogram/client/methods/decorators/on_callback_query.py b/pyrogram/client/methods/decorators/on_callback_query.py index 3bafc94d..5f22fc92 100644 --- a/pyrogram/client/methods/decorators/on_callback_query.py +++ b/pyrogram/client/methods/decorators/on_callback_query.py @@ -24,7 +24,7 @@ class OnCallbackQuery(BaseClient): def on_callback_query(self, filters=None, group: int = 0): """Use this decorator to automatically register a function for handling callback queries. This does the same thing as :meth:`add_handler` using the - CallbackQueryHandler. + :class:`CallbackQueryHandler`. Args: filters (:obj:`Filters `): diff --git a/pyrogram/client/methods/decorators/on_deleted_messages.py b/pyrogram/client/methods/decorators/on_deleted_messages.py index 4cc2d904..3f603c41 100644 --- a/pyrogram/client/methods/decorators/on_deleted_messages.py +++ b/pyrogram/client/methods/decorators/on_deleted_messages.py @@ -24,7 +24,7 @@ class OnDeletedMessages(BaseClient): def on_deleted_messages(self, filters=None, group: int = 0): """Use this decorator to automatically register a function for handling deleted messages. This does the same thing as :meth:`add_handler` using the - DeletedMessagesHandler. + :class:`DeletedMessagesHandler`. Args: filters (:obj:`Filters `): diff --git a/pyrogram/client/methods/decorators/on_disconnect.py b/pyrogram/client/methods/decorators/on_disconnect.py index d1d03723..4bc593e3 100644 --- a/pyrogram/client/methods/decorators/on_disconnect.py +++ b/pyrogram/client/methods/decorators/on_disconnect.py @@ -24,7 +24,7 @@ class OnDisconnect(BaseClient): def on_disconnect(self): """Use this decorator to automatically register a function for handling disconnections. This does the same thing as :meth:`add_handler` using the - DisconnectHandler. + :class:`DisconnectHandler`. """ def decorator(func): diff --git a/pyrogram/client/methods/decorators/on_message.py b/pyrogram/client/methods/decorators/on_message.py index 43c6f9f8..0011e083 100644 --- a/pyrogram/client/methods/decorators/on_message.py +++ b/pyrogram/client/methods/decorators/on_message.py @@ -24,7 +24,7 @@ class OnMessage(BaseClient): def on_message(self, filters=None, group: int = 0): """Use this decorator to automatically register a function for handling messages. This does the same thing as :meth:`add_handler` using the - MessageHandler. + :class:`MessageHandler`. Args: filters (:obj:`Filters `): diff --git a/pyrogram/client/methods/decorators/on_raw_update.py b/pyrogram/client/methods/decorators/on_raw_update.py index ca1c9d9b..902d9854 100644 --- a/pyrogram/client/methods/decorators/on_raw_update.py +++ b/pyrogram/client/methods/decorators/on_raw_update.py @@ -24,7 +24,7 @@ class OnRawUpdate(BaseClient): def on_raw_update(self, group: int = 0): """Use this decorator to automatically register a function for handling raw updates. This does the same thing as :meth:`add_handler` using the - RawUpdateHandler. + :class:`RawUpdateHandler`. Args: group (``int``, *optional*):