Hello @troon !! Well for detailed information check this forum - Choosing Your First Telescope - Telescope fundamentals
Well as a summary , if your are a beginner , you can buy a good 6 or 8 inch dobsonian which are btw the most popular and recommended telescopes of all time. With it you can do visual astronomy (Stargazing) as well as do astrophotography (mostly planetary photographs as above and some extent to deep sky photography with additional equipment). If you want to do full-fledged deep sky photographs you would need refractor type telescopes (with mounts, filters, guide scopes and more). But i would not recommend to directly start with deep-sky as it is time consuming and laborious in beginning as well as it is expensive. Whereas a dobsonian with all the cameras , eyepieces and filters(if needed) are half the price of a refractor setup. Hope this is helpful, have a great time!