Chatting with someone you don't know may be entirely innocent but sometimes they may not be who they say they are. You've made a good decision that will help keep you safe online.
Now it would be a good idea to tell a responsible adult what happened. That might be your Mum, Dad or Guardian.
If you have any concerns you can always contact the Police on 101 to speak to someone. Always dial 999 in an emergency.