This commit is contained in:
Joaquín Torres 2020-03-14 20:23:21 -03:00
parent e0d57865a8
commit ea13ddcf6b

7
bot.js
View File

@ -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));
bot.on("polling_error", (err) => console.log(err));