Earliest IC engines were quite peculiar.
I THINK the earliest was the gas engine..designed to run on 'town gas' featuring red hot ceramic glow plugs to assist the ignition..a sort of compression ignition engine: that predates the diesel a bit I think.
Then I have seen paraffin engines: paraffin was in use for lamps from IIRC the mid 9th century onwards. Also alcohol engines. Moderm model aircraft engines are alcohol engines with glow plugs.
I would guess that te sort of kerosene/paraffin type fuels were in use before petrol was actually. The methane type gases from refining were a waste product and burnt off at refineries and oil wells for a long time..