Update bot.js
This commit is contained in:
parent
262084d9ba
commit
d2af83b6ef
@ -22,7 +22,7 @@ const bot = new TelegramBot(token, {polling:true});
|
|||||||
|
|
||||||
/* Translator */
|
/* Translator */
|
||||||
//const translate = require('translate-api');
|
//const translate = require('translate-api');
|
||||||
const translate = require('@vitalets/google-translate-api'); //https://www.npmjs.com/package/@vitalets/google-translate-api
|
const translate = require('@vitalets/google-translate-api');
|
||||||
//const translate = require('google-translate-api');
|
//const translate = require('google-translate-api');
|
||||||
|
|
||||||
// To overwrite the users.json file:
|
// To overwrite the users.json file:
|
||||||
@ -261,4 +261,4 @@ bot.on('callback_query', function onCallbackQuery(accionboton){
|
|||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user