1. Minor fix

This commit is contained in:
Rubenlagu 2016-01-20 21:29:02 +01:00 committed by Rubenlagus
parent 9f8a34eba1
commit 56ef6bba3e

View File

@ -108,7 +108,7 @@ public class TelegramBotsApi {
if (botToken == null) { if (botToken == null) {
throw new TelegramApiException("Parameter botToken can not be null"); throw new TelegramApiException("Parameter botToken can not be null");
} }
setWebhook(extrenalUrl, botToken, pathToCertificate, publicCertificateName); setWebhook(extrenalUrl == null ? "" : extrenalUrl, botToken, pathToCertificate, publicCertificateName);
} }
/** /**