That’s quite a specific thing to look for a tutorial on. First, I’d say you need to define exactly what features it needs to have. Once you have that list, you could look for more information on each of them. By the sound of it you want a private messaging system.