From 6fd8e960eca13ed83f4f219af8dd523431b62a64 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 9 Dec 2017 20:52:02 +0100 Subject: [PATCH] Add stop method for Client --- pyrogram/client/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 855bb1d6..d6979c6d 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -268,6 +268,9 @@ class Client: self.rnd_id = self.session.msg_id self.get_dialogs() + def stop(self): + self.session.stop() + def get_dialogs(self): peers = []