Does the gravitational force between two particles depends upon the medium between them?

No, it does not depend upon the medium between the two particles.