People used the telegraph to send messages via Morse Code. Which was a variation of taps on a small pad sending electronic pulses that would make a beeping sound. There would be someone on the other end that would listen to the pulses and write them down into words