Only those who fight for their rights have rights.
Not really. Babies and mentally or physically impaired people also have rights.
Robots that are not programmed to know about rights, and therefore cannot fight to protect them, do not.
So if someone programs a robot to lecture you on rights and get real nasty if you don't agree with it, it does have rights? Sounds like just a crazy machine to me and an inhumane disconnection might be in order.
Also, there are many examples of groups of people who are fighting for rights and not getting anything. In the least robot rights should be considered only when human rights are properly figured out.