Who Made the Telegraph?

The first telegraph was actually made by Joseph Henry, but he failed to patent his idea. Samuel Morse made a telegraph machine after Henry, but Morse got his version patented.