1. Fix bug
This commit is contained in:
parent
56ef6bba3e
commit
71bd414f2c
@ -134,7 +134,7 @@ public class TelegramBotsApi {
|
|||||||
private static void setWebhook(String webHookURL, String botToken, String publicCertificatePath, String publicCertificateName) throws TelegramApiException {
|
private static void setWebhook(String webHookURL, String botToken, String publicCertificatePath, String publicCertificateName) throws TelegramApiException {
|
||||||
try {
|
try {
|
||||||
CloseableHttpClient httpclient = HttpClientBuilder.create().setSSLHostnameVerifier(new NoopHostnameVerifier()).build();
|
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);
|
HttpPost httppost = new HttpPost(url);
|
||||||
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
|
MultipartEntityBuilder builder = MultipartEntityBuilder.create();
|
||||||
|
Loading…
Reference in New Issue
Block a user