As you have mentioned that you twisted your leg, and there is swelling also, kindly pls visit the orthopaedic
For the same.. who will guide you to go for X-rays for ruling out the diagnosis
If no fracture is indicated than you need to go for physiotherapy for pain relief ..
Next Steps
Pls visit orthopaedic first and than later visit a physiotherapist