Samuel Morse sent the first telegraph message using Morse code across two miles of wire in New Jersey, USA.
Source