Se la window viene attivata, e se sono in fase di registrazione, allora controllo se ci sono aggiornamenti ogni 10 secondi, loadSite
Corretto che il link di registrazione se era in minuscolo l'username e venivi registrato in maiuscolo, non lo prendeva. L'immagine di telegram occorre salvare anche la versione SMALL Corretto filtro, se cambiavo Regione, non mi resettava la Provincia e la Città
This commit is contained in:
@@ -804,8 +804,8 @@ const MyTelegramBot = {
|
||||
|
||||
cl.setPhotoProfile(myuser, telegid, false);
|
||||
|
||||
const rismsg = await MsgTemplate.getMsgByLang(idapp, shared_consts.TypeMsgTemplate.MSG_BENVENUTO, myuser.lang);
|
||||
const rismsg2 = await MsgTemplate.getMsgByLang(idapp, shared_consts.TypeMsgTemplate.MS_SHARE_LINK, myuser.lang);
|
||||
const rismsg = await MsgTemplate.getMsgByLang(idapp, myuser, shared_consts.TypeMsgTemplate.MSG_BENVENUTO, myuser.lang);
|
||||
const rismsg2 = await MsgTemplate.getMsgByLang(idapp, myuser, shared_consts.TypeMsgTemplate.MS_SHARE_LINK, myuser.lang);
|
||||
|
||||
await cl.sendMsgLog(telegid, rismsg.body);
|
||||
await cl.sendMsg(telegid, rismsg2.body);
|
||||
@@ -927,7 +927,7 @@ const MyTelegramBot = {
|
||||
}
|
||||
msg += mydata.msgpar1;
|
||||
} else if (mydata.tipomsg >= 1000) {
|
||||
const ris = await MsgTemplate.getMsgByLang(user.idapp, mydata.tipomsg,
|
||||
const ris = await MsgTemplate.getMsgByLang(user.idapp, user, mydata.tipomsg,
|
||||
lang);
|
||||
msg = ris.body;
|
||||
title = ris.title;
|
||||
@@ -1086,7 +1086,7 @@ const MyTelegramBot = {
|
||||
}
|
||||
|
||||
if (tipomsgtempl > 0) {
|
||||
const rismsg = await MsgTemplate.getMsgByLang(idapp, tipomsgtempl, user.lang);
|
||||
const rismsg = await MsgTemplate.getMsgByLang(idapp, user, tipomsgtempl, user.lang);
|
||||
params.content = rismsg.body;
|
||||
params.title = rismsg.title;
|
||||
}
|
||||
@@ -1398,8 +1398,10 @@ class Telegram {
|
||||
|
||||
await this.sendMsgByTemplate('MSG_SET_USERNAME_OK', rec.user);
|
||||
|
||||
if (!rec.user.verified_by_aportador) {
|
||||
MyTelegramBot.askConfirmationUser(this.idapp, shared_consts.CallFunz.REGISTRATION, rec.user);
|
||||
if (rec.user) {
|
||||
if (!rec.user.verified_by_aportador) {
|
||||
MyTelegramBot.askConfirmationUser(this.idapp, shared_consts.CallFunz.REGISTRATION, rec.user);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user