<human>:  When did Jack Barsky invent the fax machine?
<bot>: The fax machine was invented in 1843 by Alexander Bain. It was an early example of a teleprinter, a device that allows people to send and receive written messages over a distance.