Thousands of Years of 'Slavery', Mughal, British Era and BJP Politics

Recently, the Prime Minister spoke on the history of the country during his US tour.

Recently, the Prime Minister spoke on the history of the country during his US tour. A large part of it was also on the slavery of 'one thousand years', in which both the Mughal and British periods were added. Is it completely true? Can the Mughal and the British periods be seen together?