From ea199b14b32b9fd600c24c0884e245b6e32c0039 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <gua@adhisimon.org>
Date: Fri, 21 Jul 2017 16:10:41 +0700
Subject: [PATCH] update pemanggilan setWebHook

---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {
-- 
1.9.0