An electrical telegraph was independently developed and patented in the United States in 1837 by Samuel Morse .
In the United States , the telegraph was developed by Samuel Morse and Alfred Vail .