YSR Telangana Party founder Y S Sharmila was granted bail by a city court, following her arrest by the police on November 29, for marching towards Chief Minister K Chandrashekar Rao's official residence here to protest the alleged attack on her convoy by the ruling TRS cadre during her ongoing padayatra.