1. Fix bug
This commit is contained in:
parent
5bcf0da75a
commit
9f8a34eba1
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user