ESP8266 Detecting which pin caused interrupt -Solution?

https://forum.arduino.cc/t/esp8266-detecting-which-pin-caused-interrupt/683899?u=ear9mrn