2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 21:07:59 +00:00

Update doctrings

This commit is contained in:
Dan 2018-02-08 22:01:14 +01:00
parent 646c821706
commit 0f45cacefa

View File

@ -98,7 +98,7 @@ class Client:
be an empty string: "" be an empty string: ""
workers (:obj:`int`, optional): 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/(.+)$") INVITE_LINK_RE = re.compile(r"^(?:https?://)?t\.me/joinchat/(.+)$")
@ -260,11 +260,11 @@ class Client:
self.is_idle.wait() self.is_idle.wait()
def set_event_handler(self, callback: callable): def set_event_handler(self, callback: callable):
"""Use this method to set the update handler. """Use this method to set the event handler.
Args: Args:
callback (:obj:`callable`): 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 self.event_handler = callback