How to place Node.js telegram bot on heroku?

Here is my action
git push heroku clone mastergit
cd node-js-getting-started
npm install
npm install node-telegram-bot-api
heroku create.
Create index.js,bot.js,web.js
// index.js//
var express = require('express');
var packageInfo = require('./package.json');

var app = express();

app.get('/', function (req, res) {
 Res. json({ version: packageInfo.version });

var server = app.listen(process.env.PORT || 5000, function () {
 var host = server.address().address;
 var port = server.address().port;

 console.log('Web server started at http://%s:%s', host, port);
var token = 'XXX'; 
var Bot = require('node-telegram-bot-api'),
 bot = new Bot(token, { polling: true });
bot.onText(/\/echo/, (msg, match) => {
 bot.sendMessage(, 'You said' + match[1])

git push heroku master
heroku ps:scale web=1.
Where is the error?
On LAN working, but the server is not running
June 10th 19 at 15:39
1 answer
June 10th 19 at 15:41
Obvesti the logger app and see the log in

Find more questions by tags HerokuNode.js