diff --git a/bot.js b/bot.js index 07c3127..03b42aa 100644 --- a/bot.js +++ b/bot.js @@ -2,7 +2,6 @@ const TelegramBot = require('node-telegram-bot-api'); // replace the value below with the Telegram token you receive from @BotFather let token = require("./credentials.json").token; -console.log(token); // Meme creator library let memeMaker = require('meme-maker'); @@ -72,9 +71,9 @@ bot.onText(/\/cuandoLaTesis/, (msg, match) => { // 'match' is the result of executing the regexp above on the text content // of the message - //console.log(msg); - console.log(msg.user.id); + + console.log(msg.from.id); console.log(msg.chat.id); }); -//bot.on("polling_error", (err) => console.log(err)); \ No newline at end of file +bot.on("polling_error", (err) => console.log(err)); \ No newline at end of file