Welcome to the family.
The meds you were given were likely a sedative to relieve the withdrawal anxiety. It should only take a few days to get thru the acute withdrawal.
I hope you'll develop a program for sobriety to keep you sober after the meds are gone. Support can help a lot, so come here often and read and post.
I got sober over 9 yrs ago and don't regret a minute of it.