public List<MessageResponse> sendMessage(Message message) throws MalformedURLException, IOException {
        URL obj;
        List<MessageResponse> responseList = new LinkedList<>();

        if (session_mode) {
            obj = new URL(URL + "sendmsg?session_id=" + session_id + "&to=" + message.getDestinationAddress() + "&text=" + message.getText());
        } else {
            obj = new URL(URL + "sendmsg?api_id=" + api_id + "&user=" + user + "&password=" + password + "&to=" + message.getDestinationAddress() + "&text=" + message.getText());
        }

        HttpURLConnection con = (HttpURLConnection) obj.openConnection();
        StringBuffer response;
        try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()))) {
            String inputLine;
            response = new StringBuffer();
            while ((inputLine = in.readLine()) != null) {
                response.append(inputLine);
            }
        }
        if (message.getDestinationAddressCount() == 1) {
            responseList.add(new MessageResponse(response.substring(4), message.getDestinationAddress()));
        } else {
            StringTokenizer st = new StringTokenizer(response.toString(), "ID://To:");
            while (st.hasMoreTokens()) {
                responseList.add(new MessageResponse(st.nextToken().trim(), st.nextToken().trim()));
            }
        }
        return responseList;
    }