We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dc5ecf commit 118cd04Copy full SHA for 118cd04
1 file changed
pyrogram/client/handlers/disconnect_handler.py
@@ -20,6 +20,19 @@
20
21
22
class DisconnectHandler(Handler):
23
- # TODO: Documentation
+ """The Disconnect handler class. Used to handle disconnections. It is intended to be used with
24
+ :meth:`add_handler() <pyrogram.Client.add_handler>`
25
+
26
27
+ Args:
28
+ callback (``callable``):
29
+ Pass a function that will be called when a disconnection occurs. It takes *(client)*
30
+ as positional argument (look at the section below for a detailed description).
31
32
+ Other parameters:
33
+ client (:obj:`Client <pyrogram.Client>`):
34
+ The Client itself. Useful, for example, when you want to change the proxy before a new connection
35
+ is established.
36
+ """
37
def __init__(self, callback: callable):
38
super().__init__(callback)
0 commit comments