The best cameras for astrophotography are often the low end models. The standard 50mm lens is a good one to start with basic astrophotography. Most 35mm cameras come with this lens. The quality of lenses can and does vary. Astrophotography is one of the most demanding tests anyone can give a lens.
Most lenses are of decent quality. .
All this is fine if you are willing to spend the money, but most of the standard 50mm lenses that are supplied with the basic SLR Kit will take decent astrophotographs. Another lens that is good for the beginner is a 28mm wide angle lens. This lens will permit you to photograph a larger area of the sky. It does not have to an expensive one, it just has to hold the camera steady. Many Astrophotos require exposures of 30 seconds to hours.