My friend confessed to me he likes me but he's a guy?

He just texted me about how he likes me but I don't like him back. I don't know what to do... I want to still be friends with him but this is so awkward because I'm straight. I knew he's gay but I never thought he could ever like me like that... I want to tell him nicely that I don't like him back and still be friends with him.
My friend confessed to me he likes me but he's a guy?
Post Opinion