A teleprinter is an electromechanical device used for sending and receiving typed messages over long distances, commonly used in early telecommunications and newsrooms before the advent of digital communication.