There's evidence that a small variety of two-wheeled machines with rear treadle drives were built in southwestern Scotland in the early 1840s. Kirkpatrick Macmillan, a blacksmith of Dumfriesshire, is most generally affiliated with these. He is claimed to get traveled 40 miles (64 km) to Glasgow in 1842, Though documentation https://tedomarket.com/product/sports-entertainment/cycling/bicycle/hybrid-bike/electric-mountain-bike-lithium-battery-motor-hybrid-ebike/