from .transport import Transport import struct from zlib import crc32 class Full(Transport): def __init__(self): self._send_counter = 0 self._recv_counter = 0 def recreate_fresh(self): return type(self)() def pack(self, input: bytes) -> bytes: # https://core.telegram.org/mtproto#tcp-transport length = len(input) + 12 data = struct.pack(' (int, bytes): if len(input) < 12: raise EOFError() length, seq = struct.unpack('