holi
This commit is contained in:
parent
e0d57865a8
commit
ea13ddcf6b
7
bot.js
7
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));
|
||||
bot.on("polling_error", (err) => console.log(err));
|
Loading…
x
Reference in New Issue
Block a user