A telegraph is a device for transmitting messages over a distance using electrical signals or waves. The technology was developed in the 19th century by people like Samuel Morse, and used Morse code (a combination of dots and dashes) to transmit messages quickly. The telegraph revolutionized communication and paved the way for modern technologies like the telephone and the internet. Ai