Shelly 1 mini with 2 way light switches

I am struggling to figure out the correct wiring to get a single Shelly 1 mini to control a light with 2 light switches. I’m in the Uk. First image below is the switch further from the light, second image is the one closest to the light that runs directly to the light

Thank you for any help