Modifiche prima di Luglio...
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user