I did this over ten years ago, so the advice is a bit hazy in my memory, but IIRC correctly the best bang for buck would be a dobsonian reflector telescope. I got an 8 inch one. You get amazing pictures of the moon through it - you need sunglasses it is so bright. If you are more interested in planets, you might be better with off with a refracting telescope - these will magnigy less for the money, but are better suited at giving you a picture of a planet for reasons I don't recall. And I think the reflector should be better for galaxies and stars (assuming the same spend, I think).
Ah, here's a decent quick guide:https://www.skyatnightmagazine.com/a...r-first-scope/