piccole modifiche...
This commit is contained in:
@@ -702,7 +702,6 @@ const MyTelegramBot = {
|
||||
|
||||
ADMIN_IDTELEGRAM_SERVER: '12429864', //Paolo
|
||||
ADMIN_USERNAME_TELEGRAM: 'surya1977', //Paolo
|
||||
ADMIN_USER_SERVER: 'paoloar77',
|
||||
ADMIN_USER_NAME_SERVER: 'Paolo',
|
||||
|
||||
phase: {
|
||||
@@ -3073,9 +3072,6 @@ class Telegram {
|
||||
|
||||
// let chiedisino = false;
|
||||
|
||||
// TEST usersall = await User.getUsersTelegALL(rec.user.idapp, 'paoloar77');
|
||||
|
||||
|
||||
for (const utente of usersall) {
|
||||
|
||||
let FormDaMostrare = null;
|
||||
@@ -3098,7 +3094,7 @@ class Telegram {
|
||||
} else if (destin === Destin.TUTTI) {
|
||||
invia = true;
|
||||
} else if (destin === Destin.PAOLO) {
|
||||
invia = utente.username === 'paoloar77';
|
||||
invia = utente.username === shared_consts.ADMIN_USER_SERVER;
|
||||
} else if (destin === Destin.A_UTENTE) {
|
||||
invia = utente.username === rec.msgall_username_specifico;
|
||||
} else if (destin === Destin.DOMANDA) {
|
||||
@@ -3644,7 +3640,6 @@ class Telegram {
|
||||
|
||||
// Check if you are Admin
|
||||
const user = await User.UserByIdTelegram(idapp, id);
|
||||
// let isAdmin = user ? user.profile.manage_telegram && user.username === 'paoloar77' : false;
|
||||
let isAdmin = user ? user.profile.admin_telegram : false;
|
||||
const isManager = user ? user.profile.manage_telegram : false;
|
||||
const isVerified = user ? user.profile.teleg_id > 0 && user.verified_by_aportador : false;
|
||||
|
||||
Reference in New Issue
Block a user