1. Fix bug

This commit is contained in:
Rubenlagu 2016-01-20 21:17:35 +01:00 committed by Rubenlagus
parent 5bcf0da75a
commit 9f8a34eba1

View File

@ -105,7 +105,7 @@ public class TelegramBotsApi {
* @param botToken * @param botToken
*/ */
private void setWebhook(String botToken) throws TelegramApiException { private void setWebhook(String botToken) throws TelegramApiException {
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, botToken, pathToCertificate, publicCertificateName);