"Autoprodotto": metterlo come campo e filtro a parte ??

Se non hai l'USERNAME TELEGRAM presente, allora il BOT ti deve dire come fare per impostarlo.
Creare una Chat di Help Supporto Tecnico
This commit is contained in:
paoloar77
2022-02-25 17:24:31 +01:00
parent 714b664c70
commit dac8b38702
9 changed files with 107 additions and 31 deletions

View File

@@ -1146,6 +1146,17 @@ module.exports = {
return (myapp) ? myapp.telegram_bot_name : '';
},
getTelegramSupportChat: function(idapp) {
try {
const myapp = this.getApps().find((item) => item.idapp === idapp);
return (myapp && myapp.telegram_support_chat)
? myapp.telegram_support_chat
: '';
}catch (e) {
return '';
}
},
getTelegramKeyByIdApp: function(idapp) {
const myarr = this.getApps();
const myapp = myarr.find((item) => item.idapp === idapp);