Versione 1.0.17
- Fix saldo pendente - aggiunto bottone markup Telegram - aggionta opzione per registrarsi direttamente su Telegram, senza doversi registrare ad un sito
This commit is contained in:
@@ -417,7 +417,7 @@ module.exports = {
|
||||
AYNI: '7',
|
||||
CNM: '10',
|
||||
RISO: '13',
|
||||
ARCADEI: '15',
|
||||
FIOREDELLAVITA: '15',
|
||||
|
||||
HELP_CHAT: '',
|
||||
TYPECONF_ZOOM: 'zoom',
|
||||
@@ -1284,13 +1284,13 @@ module.exports = {
|
||||
|
||||
let ris = false;
|
||||
let inviato = false;
|
||||
let arrris = [];
|
||||
|
||||
if (cmd === shared_consts.CIRCUITCMD.SENDCOINS_REQ || cmd === shared_consts.CIRCUITCMD.SENDCOINS_ACCEPT || cmd ===
|
||||
shared_consts.CIRCUITCMD.SENDCOINS_REFUSE) {
|
||||
|
||||
groupOrig = extrarec.grouporig
|
||||
|
||||
let arrris = [];
|
||||
let recnotif = null;
|
||||
|
||||
if (cmd === shared_consts.CIRCUITCMD.SENDCOINS_REQ) {
|
||||
@@ -1370,6 +1370,19 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (inviato) {
|
||||
if (arrris && arrris.length > 0) {
|
||||
for (const notif of arrris) {
|
||||
await SendNotif.updatePendingTransactions(notif);
|
||||
}
|
||||
} else {
|
||||
if (ris) {
|
||||
await SendNotif.updatePendingTransactions(ris.recnotif);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return { ris: ris.recnotif, inviato };
|
||||
|
||||
} catch (e) {
|
||||
@@ -4206,7 +4219,7 @@ module.exports = {
|
||||
getAhref(username, link) {
|
||||
return `<a href='${link}'>${username}</a>`;
|
||||
},
|
||||
|
||||
|
||||
|
||||
firstchars(value, numchars) {
|
||||
if (!value) {
|
||||
@@ -4282,7 +4295,7 @@ module.exports = {
|
||||
newdescrtelegram += i18n.__('CONTRIB', contributo);
|
||||
}
|
||||
newdescrtelegram += i18n.__('ADDED_FROM', userorig);
|
||||
|
||||
|
||||
return { newdescr, newdescrtelegram }
|
||||
} catch (e) {
|
||||
console.error('Error', e);
|
||||
|
||||
@@ -259,6 +259,8 @@ module.exports = {
|
||||
BOTTYPE_LINK: 2,
|
||||
BOTTYPE_TEXT: 3,
|
||||
BOTTYPE_MENU: 4,
|
||||
BOTTYPE_MARKDOWN: 5,
|
||||
BOTTYPE_BOTTONI_INLINE: 6,
|
||||
|
||||
RIS_OK: '👍🏻 OK',
|
||||
|
||||
@@ -357,6 +359,9 @@ module.exports = {
|
||||
Notif_Reg_Bot_ToManagers: 1,
|
||||
Notif_Reg_Push_Admin: 2,
|
||||
Need_Aportador_On_DataReg_To_Verify_Reg: 4,
|
||||
AskInvitantesulBot: 8,
|
||||
AskUsernameSulBot: 16,
|
||||
registerUserWithBot: 32,
|
||||
},
|
||||
|
||||
MsgTeleg: {
|
||||
|
||||
Reference in New Issue
Block a user