Where you already able to connect it? Otherwise you can connect the cables according to how they are connected to your transformer. See this post 34 for more details. You should be able to use the way Rubueno describes the wiring.
Make a dumb doorbell smart with Shelly 1 - #79 by Culemsao - Share
Making a doorbell smart using a Shelly 1 and Home Assistant
Easiest way to make a dumb doorbell smart (no programming, no
DIY Garage Door Opener w/ Security+ 2.0 GDOs - HomeTechHacker
Virtual Energy Meters with PowerCalc
DIY Garage Door Opener w/ Security+ 2.0 GDOs - HomeTechHacker
Adding notifications to dumb push-button doorbell without neutral
Make a dumb doorbell smart with Shelly 1 - #40 by mr_density
Shelly One WIFI Switch - Scargill's Tech Blog
Make a dumb doorbell smart with Shelly 1 - #38 by gerard33 - Share
Make a dumb doorbell smart with Shelly 1 - #102 by arganto - Share
Contact Sensor for Doorbell - Hardware - Home Assistant Community