diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 08e0e117..be04db75 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -245,6 +245,9 @@ class Client: """Use this method to manually stop the Client. Requires no parameters. """ + if not self.is_started: + raise ConnectionError("Client is already stopped") + self.is_started = False self.session.stop()