You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var TelegramBot = require('../src/telegram');
|
|
|
|
var options = {
|
|
webHook: {
|
|
port: 443,
|
|
key: __dirname+'/key.pem',
|
|
cert: __dirname+'/crt.pem'
|
|
}
|
|
};
|
|
|
|
var bot = new TelegramBot('BOT_TOKEN', options);
|
|
bot.setWebHook('IP:PORT/botBOT_TOKEN');
|
|
|