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:
12
examples/httpsWebHook.js
Normal file
12
examples/httpsWebHook.js
Normal 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');
|
Reference in New Issue
Block a user