Update index.php

This commit is contained in:
Mattia Mascarello 2022-08-05 00:33:40 +02:00 committed by GitHub
parent 351b173335
commit fd7fa0d35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1017,7 +1017,9 @@ switch ($DATA["message"]["chat"]["id"]) {
$u = $people->get($uid); $u = $people->get($uid);
switch ($u->status) { switch ($u->status) {
case "askDm": case "askDm":
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => "Per procedere, occorre acconsentire alla privacy policy:\n https://telegra.ph/Rainbow-Bot----Privacy-policy-08-04 \n Scrivi \"\" per continuare.", "reply_to_message_id" => $DATA["message"]["message_id"]]); API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["privacy"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
$u->status = "consent";
$u->save();
break; break;
case "consent": case "consent":
$a = strtolower(trim($t)); $a = strtolower(trim($t));
@ -1026,7 +1028,7 @@ switch ($DATA["message"]["chat"]["id"]) {
$u->status = "askName"; $u->status = "askName";
$u->save(); $u->save();
} else { } else {
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => "Nessun problema, scrivi \"\" in qualsiasi momento se hai un ripensamento", "reply_to_message_id" => $DATA["message"]["message_id"]]); API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["privacyNo"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
} }
break; break;
case "askName": case "askName":
@ -1354,7 +1356,7 @@ switch ($DATA["message"]["chat"]["id"]) {
//API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => "Il bot ti ricontatterà appena non scriverai qualcosa sul gruppo.","reply_to_message_id"=>$DATA["message"]["message_id"]]); //API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => "Il bot ti ricontatterà appena non scriverai qualcosa sul gruppo.","reply_to_message_id"=>$DATA["message"]["message_id"]]);
break; break;
case "opt-out": case "optout":
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["dataErased"], "reply_to_message_id" => $DATA["message"]["message_id"]]); API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["dataErased"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
$people->get($uid)->delete(); $people->get($uid)->delete();
break; break;