vedere le Richieste di Fiducia solo se si è verificati Telegram

Corretto il mio account che doveva confermare in automatico... non lo faceva...
This commit is contained in:
paoloar77
2022-03-04 15:30:11 +01:00
parent c1cecc5eb4
commit dba9a4ea70
5 changed files with 212 additions and 71 deletions

View File

@@ -2608,11 +2608,15 @@ module.exports = {
return process.env.LOCALE !== '1';
},
refreshAllTablesInMem(idapp, table, updatebot) {
refreshAllTablesInMem(idapp, table, updatebot, username) {
const telegrambot = require('../telegram/telegrambot');
if (table === shared_consts.TAB_MYBOTS || updatebot) {
telegrambot.reloadMenuBot(idapp);
}
if (table === shared_consts.TAB_USERS) {
telegrambot.deleteRecInMemByUsername(idapp, username);
} else if (table === shared_consts.TAB_SITES) {
telegrambot.reloadSites();
}