Commit 80fa2e5fed38e2c2c3f0c6cb18daa6cdb65b7d2e
1 parent
6ea642a8b6
Exists in
master
perbaikan kondisi polling
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
index.js
... | ... | @@ -10,7 +10,7 @@ var botUsername = 'UNKNOWN'; |
10 | 10 | |
11 | 11 | var options = {}; |
12 | 12 | |
13 | -if (Number(config.polling)) { | |
13 | +if (!Number(config.polling)) { | |
14 | 14 | options.webHook = { |
15 | 15 | port: config.webhook_port, |
16 | 16 | key: __dirname+'/key.pem', |
... | ... | @@ -19,7 +19,7 @@ if (Number(config.polling)) { |
19 | 19 | } |
20 | 20 | var bot = new telegram(config.token, options); |
21 | 21 | |
22 | -if (Number(config.polling)) { | |
22 | +if (!Number(config.polling)) { | |
23 | 23 | bot.setWebHook(config.webhook_prefix + config.token, __dirname+'/crt.pem'); |
24 | 24 | } |
25 | 25 |