diff --git a/pyrogram/connection/transport/tcp/tcp_abridged.py b/pyrogram/connection/transport/tcp/tcp_abridged.py index f23afe4b..acb837af 100644 --- a/pyrogram/connection/transport/tcp/tcp_abridged.py +++ b/pyrogram/connection/transport/tcp/tcp_abridged.py @@ -60,8 +60,4 @@ class TCPAbridged(TCP): if length is None: return None - length = int.from_bytes(length, "little") * 4 - - packet = super().recvall(length) - - return packet + return super().recvall(int.from_bytes(length, "little") * 4) diff --git a/pyrogram/connection/transport/tcp/tcp_intermediate.py b/pyrogram/connection/transport/tcp/tcp_intermediate.py index 0ba31c85..301a88f6 100644 --- a/pyrogram/connection/transport/tcp/tcp_intermediate.py +++ b/pyrogram/connection/transport/tcp/tcp_intermediate.py @@ -50,6 +50,4 @@ class TCPIntermediate(TCP): if length is None: return None - packet = super().recvall(unpack("