1. Fix bug

This commit is contained in:
Rubenlagu 2016-01-20 21:39:21 +01:00 committed by Rubenlagus
parent 56ef6bba3e
commit 71bd414f2c

View File

@ -134,7 +134,7 @@ public class TelegramBotsApi {
private static void setWebhook(String webHookURL, String botToken, String publicCertificatePath, String publicCertificateName) throws TelegramApiException {
try {
CloseableHttpClient httpclient = HttpClientBuilder.create().setSSLHostnameVerifier(new NoopHostnameVerifier()).build();
String url = Constants.BASEURL + botToken + SetWebhook.PATH;
String url = Constants.BASEURL + botToken + "/" + SetWebhook.PATH;
HttpPost httppost = new HttpPost(url);
MultipartEntityBuilder builder = MultipartEntityBuilder.create();