He has a gf

Was flirting and sexting with a guy for a few months now. Well I just found out he has a girlfriend. I am going to tell the girl about all that happened but how do I tell her? I wasn’t aware he was taken until just recently and when I found out I stopped talking to him. His girlfriend deserves to know the truth though.