'use strict';
constTeleBot = require('../');
const bot = newTeleBot('-PASTEYOURTELEGRAMBOTAPITOKENHERE-');
// On every text message
bot.on('text', msg => {
let id = msg.from.id;
let text = msg.text;
return bot.sendMessage(id, `You said: ${ text }`);
});
bot.connect();