RRR is primarily a fictional story, though it draws inspiration from the lives of two real Indian freedom fighters.
The film takes creative liberties and imagines a hypothetical friendship between Alluri Sitarama Raju (played by Ram Charan) and Komaram Bheem (played by Jr. NTR). While these historical figures existed and fought against British rule, the specific events and their interaction depicted in the movie are largely products of the director S.S. Rajamouli's imagination.
Therefore, while RRR is inspired by real people and events, it is not a historically accurate or biographical account. It's a fictionalized narrative woven around the themes of patriotism, friendship, and rebellion against colonial oppression. The core narrative, character interactions, and many of the depicted events are fictionalized for dramatic effect.