var TelegramBot = require('node-telegram-bot-api');
var getCurrency = require('./getCurrency');

// get from Heroku config variable
var token = process.env.token;
var channelID = process.env.channelID;
var port = process.env.PORT || 8443;
var host = process.env.HOST;

var webhook = {
	webHook: {
		port: port,
		host: host
	}
}

var bot = new TelegramBot(token, webhook);
var interval = 3 * 3600 * 1000;

setInterval(function(){
    getCurrency(function(err, currency){
    	console.log(currency)
        bot.sendMessage(channelID, currency);
    });
}, interval);
@@ -366,16 +366,19 @@
 bhook);%0A
+// 
 var inte
@@ -400,16 +400,42 @@
  * 1000;
+%0Avar interval = 10 * 1000;
 %0A%0AsetInt

test interval