chat tool, function of sending , getting and leaving a message