When you’re telling a girl that you can eventually know that you like her and then you would like to be her partner, should I be always done in person or can you say that over text

I know it depends on how close you are already etc. etc. But I’m talking generally speaking, Should you approach Someone about your true feelings or can you tell her over text?