<human>:  When was the first photograph ever taken?
<bot>: The first photograph was taken by Joseph Nicephore Niepce in 1826. He used a camera obscura, which is a darkened box with a hole in the top, and a piece of glass on the bottom. He would place an object in the box and expose the glass to light for a certain amount of time. He then developed the film in a solution and it turned out to be a picture of the object he had placed in the box.