since you have a heart condition i would advise you to consult your physician before you have alcohol.
alcohol has been said to have some cardioprotective effect but it is in very little doses and in some people who are said to be healthy.
however since you have undergone a heart replacement surgery you will be put on some medicines which can be inhibited by alcohol.
so i would advise you to abstrain from alcohol and smoking
if in case you do.
i hope i have answerd your query.