Speak to your physician They probably already have you lined up with a nutrition program. I had a heart attack a few years ago and the doctors told me to keep riding. But you will want to talk to your doc to see when they think you will be healed up enough to be able to ride.
Once you get on the bike, stick with it.