IF you Cheated, But You want to restore your relationship,
Here's some advice:
Don’t assume the relationship is over. If you are willing to do the hard work and take responsibility for what happened, your relationship could very well survive. Don’t assume you have to run. Running away from your mistakes would further hurt your partner, causing them more trauma on top of the betrayal of cheating.
Acknowledge you messed up and seek forgiveness. You have broken trust and caused another person to feel unloved or not good enough. Sure, there may be deeper problems between you and your partner, but the fact remains your infidelity was a betrayal of your commitment. Own up to that.
End all communication with the person you cheated with. If you want any chance of restoring your relationship, you need to cut ALL ties with the person you cheated with. If that seems unreasonable to you, consider whether or not you truly want to recommit to your partner.