protected function sendMessage($to, $message)
    {
        if ($message instanceof HipChatMessage) {
            return $this->hipChat->sendMessage($to, $message->toArray());
        }

        if ($message instanceof HipChatFile) {
            return $this->hipChat->shareFile($to, $message->toArray());
        }
    }