How old do i have to be

How old do i have to be to breastfeed my child. People say i have to formula feed because of my age but i want to be a good mum and breastfeed