diff --git a/index.js b/index.js index b6dc3b4..290ce5b 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ if (!Number(config.polling)) { var bot = new telegram(config.token, options); if (!Number(config.polling)) { - bot.setWebHook(config.webhook_prefix + config.token, __dirname+'/crt.pem'); + bot.setWebHook(config.webhook_prefix + config.token, {certificate: __dirname+'/crt.pem'}); } function sendMessage(destination, message, retry) {