diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 237b00f7..08e0e117 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -194,6 +194,9 @@ class Client: Raises: :class:`Error ` """ + if self.is_started: + raise ConnectionError("Client has already been started") + if self.BOT_TOKEN_RE.match(self.session_name): self.token = self.session_name self.session_name = self.session_name.split(":")[0]