A secret friend in Toontown is someone you can talk to freely, typing anything you like, once you have exchanged the right code.
To set one up, click a friend's name and ask them for their code. Every secret friend code starts with TT, which is the quickest way to tell a real one from a guess. Until that exchange happens, the game keeps your chat restricted to speed phrases — which is exactly the safety feature the system is built around.