2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-31 06:16:07 +00:00

First commit

This commit is contained in:
yago
2015-06-29 00:37:40 +02:00
commit 9beb32366d
10 changed files with 567 additions and 0 deletions

12
examples/httpsWebHook.js Normal file
View File

@@ -0,0 +1,12 @@
var TelegramBot = require('../src/telegram');
var options = {
webHook: {
port: 443,
key: __dirname+'/key.pem',
cert: __dirname+'/crt.pem'
}
};
var bot = new TelegramBot('BOTTOKEN', options);
bot.setWebHook('IP:PORT');