Human: Who invented the telegraph and when? Assistant: 
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.