Thanks for posting your query.
You may have soft tissue superficial injury in skin or deep injury in lungs.
There may also be possibility of rib fracture
You should consult with physician/ surgeon and go for urgent chest x ray
If x ray suggest fracture rib then it will take long time for recovery.
Although this rib fracture will resolve spontaneously and you have to take pain killers for pain relief.
Soft tissue injury
resolves fast and has short span.
Dr. Mayank Bhargava