The first lasting photograph, Perspective from your Window at Le Gras by Nicéphore Niépce, was also the first architectural photograph as it had been a watch of properties. Similarly, images taken by early photographer William Henry Fox Talbot have been of architecture, including his photograph of the Latticed window in https://tinyurl.com/3dxy6dua