The time it takes to recover after being shot depends on where you got shot because sometimes if you get shot in vital organs you may not even survive the gunshot.
If you get shot in the leg you might recover in a few days but if you get shot in the head or heart or other vital organs you might not recover at all or it might take a few months to recover from being shot in those places.
So there's no clear cut answer to this question but if you're gonna recover you could recover in a few days to around 6 months and even a year to fully recover from the gunshot.
It all depends on how severe the damage was and where you were shot when the shooting occurred.