Relationship trouble

My boyfriend and i broke up not to long ago and his friend told me that he liked me at the same time and i told his friend he needs to tell him and i obviously don’t want to ruin the friendship but i feel like he needs to know. I don’t want to tell him but i told his friend to. Should he or no?