prostitution with foreign escort in india

I am visiting an independent Philippines escort in Hyderabad, India, at a hotel for prostitution for one hour. I negotiated the charges via WhatsApp. Is this legal? What should I say if the police catch me in a raid?