You didn't say how you are related to the wedding party, so this suggestion may be inappropriate . . .
and this may sound naïve:
Why not tell the friend that you are going with and/or the host or hostess that you have a problem with alcohol?
Perhaps even tell them that you are alcoholic?
I know; it may be too soon -- too bold.
It may seem risky or embarrassing.
And yet, this is my recent experience:
The last wedding I was invited to was my wife's sister's daughter's (my niece's wedding).
My sister-in-law knows I am a sober alcoholic, so my place at the reception had no wine or champagne glasses.
There was an expectation on the part of others that I could not, should not and would not drink.
That, combined with my firm resolve and solid faith, made not drinking a non-issue.
Maybe it's too soon in your sobriety.
Perhaps your drinking problem is still largely unknown to others.
But, honesty, openness and willingness have helped me to keep away from a drink for many a day now.
Staying away from a drink can be hard on your own.
Goodness knows, I needed a lot of help.
Remember:
A problem shared is a problem halved.
~ English proverb
.