'use strict';

const TeleBot = require('telebot');
var telegramTokenReader = require('fs');

// load token from file
var token = telegramTokenReader.readFileSync('telegram_token.secret').toString().replace(/\n$/, '');
console.log('token: ' + token);
const bot = new TeleBot(token);

bot.on('text', msg => {
  let fromId = msg.from.id;
  let firstName = msg.from.first_name;
  let reply = msg.message_id;
  return bot.sendMessage(fromId, `Welcome, ${ firstName }!`, { reply });
});

bot.connect();

@@ -8,16 +8,99 @@
 rict';%0A%0A
+console.log(%22QoQa Telegram Bot Server%22);%0Aconsole.log(%22########################%22);%0A%0A
 const Te
@@ -127,16 +127,16 @@
 ebot');%0A
-
 var tele
@@ -311,15 +311,23 @@
 og('
-t
+Secret T
 oken: 
+%5B
 ' + 
@@ -331,16 +331,22 @@
  + token
+ + %22%5D%22
 );%0Aconst
@@ -494,16 +494,59 @@
 age_id;%0A
+  console.log(%22 =%3E respond to %22 + fromId);%0A
   return
@@ -611,24 +611,24 @@
 ly %7D);%0A%7D);%0A%0A
-
 bot.connect(
@@ -630,8 +630,42 @@
 nect();%0A
+console.log(%22Bot is running...%22);%0A

Add some usefull logging