def __bytes__(self): # TODO Maybe compress level could be an option return struct.pack('<I', GzipPacked.CONSTRUCTOR_ID) + \ TLObject.serialize_bytes(gzip.compress(self.data))