It's all documented in the Scripting Documentation!
Go check out the page for Objects Reference > ChatWnd Object > Properties > Contacts.
I recommend you to search a bit before posting a new topic. This kind of questions have been answered many times before!