From d081ace868092c0c984fd69c08d60c3b74868822 Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <gua@adhisimon.org> Date: Mon, 3 Apr 2017 14:40:48 +0700 Subject: [PATCH] perbaikan polling --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index b81a3bf..b6dc3b4 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,10 @@ if (!Number(config.polling)) { key: __dirname+'/key.pem', cert: __dirname+'/crt.pem' } +} else { + options.polling = true; } + var bot = new telegram(config.token, options); if (!Number(config.polling)) { -- 1.9.0