You need to pass the return value of myURL.WebURL(myArray)
to send messgae
String myURLString = myURL.WebURL(myArray);
sendMessage(channel, myURLString);
The error message is quite correct - they're usually quite helpful and are almost always very clear about type errors.