i lied to my boyfriend

i told my bf i was 18 when i met him with my friends a while ago bc my friend told me to tell everyone i was18(she is too) and now we're dating and he thinks i'm 18 and he's 23 and he'd never date someone under 18 so what should i do o love him a lot and finally someone is treating me right