public InboundMessage sendMessage(String streamId, OutboundMessage message, Boolean appendTags) { SymConfig symConfig = botClient.getConfig(); RestRequestHandler restRequestHandler = new RestRequestHandler(); string url = "https://" + symConfig.agentHost + ":" + symConfig.agentPort + "/agent/v4/stream/" + streamId + "/message/create"; if (botClient is SymOBOClient) { symConfig.authTokens.sessionToken = botClient.getSymAuth().getSessionToken(); } HttpResponseMessage resp = restRequestHandler.executePostFormRequest(message, url, symConfig); InboundMessage inboundMessage = JsonConvert.DeserializeObject <InboundMessage>(resp.Content.ReadAsStringAsync().Result); return(inboundMessage); }