Modifiche prima di Luglio...

This commit is contained in:
Surya Paolo
2023-08-27 23:55:31 +02:00
parent ba81a33c88
commit ad6b4c2bfa
21 changed files with 1747 additions and 2251 deletions

View File

@@ -805,7 +805,7 @@ const MyTelegramBot = {
if (text) {
await this.sendMsgTelegramToTheManagers(mylocalsconf.idapp,
addtext + text, false, null, userdest);
addtext + text, false, null);
}
},
@@ -3038,12 +3038,13 @@ class Telegram {
let mymsg = msg.text.toString().trim().toLowerCase();
let invitante = '';
let regexpire = '';
const sep = '-'
if (mymsg.startsWith('/start')) {
let myarrmsg = mymsg.split(' ');
if (myarrmsg.length > 0) {
mymsg = myarrmsg[1];
if (mymsg.startsWith('inv#')) {
let arrparams = mymsg.split('#');
if (mymsg.startsWith('inv' + sep)) {
let arrparams = mymsg.split(sep);
if (arrparams.length > 2) {
invitante = arrparams[1];
regexpire = arrparams[3];