<human>:  Who invented the telegraph and when?
<bot>: Samuel Morse was the inventor of the telegraph. Morse’s telegraph used a single wire to send a signal, and he developed a code to represent the signals as dots and dashes. Morse’s first telegraph line was installed in 1832.