From f824e69b5a2449fd01121f75b504235fc15c1a47 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 30 Apr 2018 10:15:34 +0200 Subject: [PATCH] Update client.py --- pyrogram/client/client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 8fb3e500..1a8b2578 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -243,12 +243,13 @@ class Client: return func return decorator - + + # TODO: Maybe make add_handler return (handler, group)? def add_handler(self, handler, group: int = 0): """Use this method to register an update handler. You can register multiple handlers, but at most one handler within a group - will be used for a single event. To handle the same event more than once, register + will be used for a single update. To handle the same update more than once, register your handler using a different group id (lower group id == higher priority). Args: @@ -264,7 +265,7 @@ class Client: """Removes a previously-added update handler. Make sure to provide the right group that the handler was added in. You can use - the return value of the ``add_handler`` method, a tuple of (handler, group), and + the return value of the :meth:`add_handler` method, a tuple of (handler, group), and pass it directly. Args: