const TelegramBot = require('node-telegram-bot-api')
const TOKEN = 'ЗДЕСЬ МОЙ ТОКЕН'
const bot = new TelegramBot(TOKEN,{
polling: {
interval: 300,
autoStart: true,
params:{
timeout: 10
}
}
})
bot.on('message', msg => {
bot.sendMessage(msg.chat.id, 'I am alive!')
})