Update bot.js

This commit is contained in:
Fernando Méndez 2021-03-10 11:50:41 +01:00 committed by GitHub
parent 262084d9ba
commit d2af83b6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: