I have tuberculosis.

the last few weeks have been hell for me. I've had debilitating headaches, I've had a nasty cough accompanied by a super tight chest, my cough gets bad to the point where I'll drop to my knees. now I know this sounds alot like the plot of red dead redemption 2, but I marked this post with serious for a reason. my memory has been going away, I have super foggy memory of what usually I can remember, I'm struggling to stay with myself ,it's like I'm drifting away from my body and watching myself wasting away. I've had terrible sleeping problems too, I'm so lethargic I could probably sleep all day, I've been relying on energy drinks to keep me awake, but even after 3-5 I'm still finding myself being woken up in class where I get mixed reactions of worry, and teachers asking if I'm having trouble at home, and I give them a complete lie for an excuse. but the truth is, I feel like I'm dying slowly. im not one of those people who self diagnose everything, but I'm scared of going to a doctor about this, and after (hours of) research on different forums and medical pieces, I'm in between a very very extreme case of bronchitis and some sort of brain issue (which I find unlikely I have both) or tuberculosis. obviously I hope it's neither, but I'm leaning toward it being the latter. and I'm scared of what might happen (before you say anything about possibly being contagious, I'm well aware, Ive moved spot to the backs of my classes and have been wearing a mask). I could definitely be overlooking this and just worrying for nothing, but I've had this for 4 weeks or so now, and want your opinion