Commit ea199b14b32b9fd600c24c0884e245b6e32c0039
1 parent
a8daa20cee
Exists in
master
update pemanggilan setWebHook
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
index.js
... | ... | @@ -23,7 +23,7 @@ if (!Number(config.polling)) { |
23 | 23 | var bot = new telegram(config.token, options); |
24 | 24 | |
25 | 25 | if (!Number(config.polling)) { |
26 | - bot.setWebHook(config.webhook_prefix + config.token, __dirname+'/crt.pem'); | |
26 | + bot.setWebHook(config.webhook_prefix + config.token, {certificate: __dirname+'/crt.pem'}); | |
27 | 27 | } |
28 | 28 | |
29 | 29 | function sendMessage(destination, message, retry) { |