<human>:  Who invented the telegraph and when?
<bot>: Samuel Morse was the inventor of the telegraph. He received a patent for the telegraph in 1837, and was awarded a second patent in 1843. The telegraph was used to transmit messages over long distances, and was the first electronic communication system.