2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-30 13:58:27 +00:00
Files
node-telegram-bot-api/examples/httpsWebHook.js

13 lines
250 B
JavaScript
Raw Permalink Normal View History

2015-06-29 00:37:40 +02:00
var TelegramBot = require('../src/telegram');
var options = {
webHook: {
port: 443,
key: __dirname+'/key.pem',
cert: __dirname+'/crt.pem'
}
};
2015-06-30 01:42:35 +02:00
var bot = new TelegramBot('BOT_TOKEN', options);
bot.setWebHook('IP:PORT/botBOT_TOKEN');