First patent for “Electric Printing Telegraph.” issued in England in 1843. I had to google it.
I had to look it up to... but when I think fax machine, I think about how it scans an image (even if the image is text on a document) and sends that image to be printed again. I wouldn’t think as an electric telegraph machine as a fax, but it is in the same family.