From ea13ddcf6b63eb9eb268c3989586368bbc601689 Mon Sep 17 00:00:00 2001 From: juakotorres Date: Sat, 14 Mar 2020 20:23:21 -0300 Subject: [PATCH] holi --- bot.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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