Creazione tabella Product
This commit is contained in:
@@ -174,6 +174,7 @@ const Menu = {
|
||||
SI: emoji.get('thumbsup') + ' SI',
|
||||
NO: emoji.get('thumbsdown') + ' NO',
|
||||
ESCI_DA_CHAT: emoji.get('incoming_envelope') + ' Esci dalla Conversazione',
|
||||
NUOVOSITO: 'https://ayni.gifteconomy.app'
|
||||
},
|
||||
es: {
|
||||
ACCEDI: emo.PERSON + ' Entra',
|
||||
@@ -283,6 +284,15 @@ const MenuPerAdmin = {
|
||||
enUs: { menu: [[Menu.enUs.LAVAGNA, Menu.enUs.LINK_CONDIVIDERE], [Menu.enUs.ZOOM, Menu.enUs.ASSISTENZA], [Menu.LANG, Menu.ADMIN]] },
|
||||
};
|
||||
|
||||
const MenuRedirigi = {
|
||||
it: { menu: [[Menu.it.NUOVOSITO]] },
|
||||
es: { menu: [[Menu.it.NUOVOSITO]] },
|
||||
fr: { menu: [[Menu.it.NUOVOSITO]] },
|
||||
si: { menu: [[Menu.it.NUOVOSITO]] },
|
||||
pt: { menu: [[Menu.it.NUOVOSITO]] },
|
||||
enUs: { menu: [[Menu.it.NUOVOSITO]] },
|
||||
};
|
||||
|
||||
const MenuLang = {
|
||||
it: { menu: [[Menu.LANG_IT, Menu.LANG_EN], [Menu.LANG_ES, Menu.LANG_FR], [Menu.LANG_SI, Menu.LANG_PT, Menu.it.INDIETRO]] },
|
||||
};
|
||||
@@ -1342,6 +1352,8 @@ class Telegram {
|
||||
|
||||
if (this.isSelMenu(msg, msg.text, 'LAVAGNA') || MsgBot.LAVAGNA.find((rec) => msg.text.indexOf(rec) > -1)) {
|
||||
await this.menuLavagna(msg);
|
||||
}else if (msg.text === Menu.it.NUOVOSITO) {
|
||||
await this.sendMsg(msg.chat.id, Menu.it.NUOVOSITO);
|
||||
} else if (msg.text === Menu.MIANAVE || (cmd2 === strNave) || MsgBot.MIANAVE.find((rec) => msg.text.indexOf(rec) > -1)) {
|
||||
await this.menuNave(msg)
|
||||
} else if (this.isSelMenu(msg, msg.text, 'ACCEDI')) {
|
||||
@@ -1576,7 +1588,7 @@ class Telegram {
|
||||
if (arrstringa.length > 1) {
|
||||
let last = arrstringa.slice(-1)[0];
|
||||
if (!isNaN(last)) {
|
||||
ind_order_to_check = last;
|
||||
// ind_order_to_check = last;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2350,10 +2362,17 @@ class Telegram {
|
||||
|
||||
async getKeyboard(id, menu, lang) {
|
||||
let keyb = MenuStandard;
|
||||
|
||||
if (this.idapp === tools.AYNI) {
|
||||
keyb = MenuRedirigi
|
||||
}
|
||||
// Check if you are Admin
|
||||
const ismanager = await User.isAdminByIdTeleg(this.idapp, id);
|
||||
if (ismanager && menu !== MenuChat)
|
||||
keyb = MenuPerAdmin;
|
||||
if (this.idapp === tools.AYNI) {
|
||||
keyb = MenuRedirigi
|
||||
}
|
||||
if (menu) {
|
||||
keyb = menu
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user