diff --git a/pyrogram/connection/transport/tcp/tcp.py b/pyrogram/connection/transport/tcp/tcp.py index 13ddb8e2..67b5385d 100644 --- a/pyrogram/connection/transport/tcp/tcp.py +++ b/pyrogram/connection/transport/tcp/tcp.py @@ -45,6 +45,8 @@ class TCP: self.reader = None # type: asyncio.StreamReader self.writer = None # type: asyncio.StreamWriter + self.loop = asyncio.get_event_loop() + if proxy: hostname = proxy.get("hostname")