diff --git a/pyrogram/client/handlers/callback_query_handler.py b/pyrogram/client/handlers/callback_query_handler.py index c0bba510..c5346519 100644 --- a/pyrogram/client/handlers/callback_query_handler.py +++ b/pyrogram/client/handlers/callback_query_handler.py @@ -23,6 +23,9 @@ class CallbackQueryHandler(Handler): """The CallbackQuery handler class. Used to handle callback queries coming from inline buttons. It is intended to be used with :meth:`add_handler() ` + For a nicer way to register this handler, have a look at the + :meth:`on_callback_query() ` decorator. + Args: callback (``callable``): Pass a function that will be called when a new CallbackQuery arrives. It takes *(client, callback_query)* diff --git a/pyrogram/client/handlers/deleted_messages_handler.py b/pyrogram/client/handlers/deleted_messages_handler.py index 6a1f7689..55d5715f 100644 --- a/pyrogram/client/handlers/deleted_messages_handler.py +++ b/pyrogram/client/handlers/deleted_messages_handler.py @@ -20,10 +20,13 @@ from .handler import Handler class DeletedMessagesHandler(Handler): - """The Deleted Messages handler class. Used to handle deleted messages coming from any chat + """The deleted Messages handler class. Used to handle deleted messages coming from any chat (private, group, channel). It is intended to be used with :meth:`add_handler() ` + For a nicer way to register this handler, have a look at the + :meth:`on_deleted_messages() ` decorator. + Args: callback (``callable``): Pass a function that will be called when one or more Messages have been deleted. diff --git a/pyrogram/client/handlers/disconnect_handler.py b/pyrogram/client/handlers/disconnect_handler.py index 9ad4ffbc..a8b800a8 100644 --- a/pyrogram/client/handlers/disconnect_handler.py +++ b/pyrogram/client/handlers/disconnect_handler.py @@ -23,6 +23,8 @@ class DisconnectHandler(Handler): """The Disconnect handler class. Used to handle disconnections. It is intended to be used with :meth:`add_handler() ` + For a nicer way to register this handler, have a look at the + :meth:`on_disconnect() ` decorator. Args: callback (``callable``): diff --git a/pyrogram/client/handlers/message_handler.py b/pyrogram/client/handlers/message_handler.py index 6aae27de..1b4770b3 100644 --- a/pyrogram/client/handlers/message_handler.py +++ b/pyrogram/client/handlers/message_handler.py @@ -24,6 +24,9 @@ class MessageHandler(Handler): any chat (private, group, channel). It is intended to be used with :meth:`add_handler() ` + For a nicer way to register this handler, have a look at the + :meth:`on_message() ` decorator. + Args: callback (``callable``): Pass a function that will be called when a new Message arrives. It takes *(client, message)* diff --git a/pyrogram/client/handlers/raw_update_handler.py b/pyrogram/client/handlers/raw_update_handler.py index 8a1e0a03..5a8913b6 100644 --- a/pyrogram/client/handlers/raw_update_handler.py +++ b/pyrogram/client/handlers/raw_update_handler.py @@ -23,6 +23,9 @@ class RawUpdateHandler(Handler): """The Raw Update handler class. Used to handle raw updates. It is intended to be used with :meth:`add_handler() ` + For a nicer way to register this handler, have a look at the + :meth:`on_raw_update() ` decorator. + Args: callback (``callable``): A function that will be called when a new update is received from the server. It takes