From 0f45cacefa919de7625cc59207f29cfa9097c9c6 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 8 Feb 2018 22:01:14 +0100 Subject: [PATCH] Update doctrings --- pyrogram/client/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 987348e4..b60754a5 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -98,7 +98,7 @@ class Client: be an empty string: "" workers (:obj:`int`, optional): - Thread pool size for handling incoming messages (updates). Defaults to 4. + Thread pool size for handling incoming events (updates). Defaults to 4. """ INVITE_LINK_RE = re.compile(r"^(?:https?://)?t\.me/joinchat/(.+)$") @@ -260,11 +260,11 @@ class Client: self.is_idle.wait() def set_event_handler(self, callback: callable): - """Use this method to set the update handler. + """Use this method to set the event handler. Args: callback (:obj:`callable`): - A callback function that accepts a single argument: the update object. + A callback function that accepts a single argument: the event (update) object. """ self.event_handler = callback