If you say drink at least 8 8 oz. glass of water a day, is it ok to replace that with hot tea?

I mean like, i kno you need to drink a lot of fluid (preferably water); 8 glass of water a day at least, does it mater what fluid it is? is tea the same? I drink black tea, and green tea.