We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 118cd04 commit dacc017Copy full SHA for dacc017
1 file changed
pyrogram/client/methods/decorators/on_disconnect.py
@@ -22,7 +22,11 @@
22
23
class OnDisconnect(BaseClient):
24
def on_disconnect(self):
25
- # TODO: Documentation
+ """Use this decorator to automatically register a function for handling
26
+ disconnections. This does the same thing as :meth:`add_handler` using the
27
+ DisconnectHandler.
28
+ """
29
+
30
def decorator(func):
31
self.add_handler(pyrogram.DisconnectHandler(func))
32
return func
0 commit comments