Added relationship status
This commit is contained in:
parent
60a2504099
commit
35c5b9f353
|
@ -1176,6 +1176,33 @@ switch ($DATA["message"]["chat"]["id"]) {
|
||||||
|
|
||||||
$u->pvtNotice = $t;
|
$u->pvtNotice = $t;
|
||||||
}
|
}
|
||||||
|
if ($u->oneEdit != $u->status && $u->oneEdit) {
|
||||||
|
$u->oneEdit = false;
|
||||||
|
$u->status = "end";
|
||||||
|
$u->save();
|
||||||
|
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["updatedData"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
|
||||||
|
|
||||||
|
endM($DATA);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$u->status = "askrel";
|
||||||
|
$u->save();
|
||||||
|
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["relM"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
|
||||||
|
|
||||||
|
break;
|
||||||
|
case "askrel":
|
||||||
|
if ($u->oneEdit != $u->status) {
|
||||||
|
if (isNo($t)) {
|
||||||
|
$u->rel = false;
|
||||||
|
$u->save();
|
||||||
|
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["noProblem"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
|
||||||
|
} else {
|
||||||
|
$u->rel = $t;
|
||||||
|
$u->save();
|
||||||
|
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["thanks"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($u->oneEdit != $u->status && $u->oneEdit) {
|
if ($u->oneEdit != $u->status && $u->oneEdit) {
|
||||||
$u->oneEdit = false;
|
$u->oneEdit = false;
|
||||||
$u->status = "end";
|
$u->status = "end";
|
||||||
|
@ -1189,7 +1216,7 @@ switch ($DATA["message"]["chat"]["id"]) {
|
||||||
$u->save();
|
$u->save();
|
||||||
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["bioM"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
|
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => $GLOBALS["config"]["lgbt"]["text"]["bioM"], "reply_to_message_id" => $DATA["message"]["message_id"]]);
|
||||||
|
|
||||||
break;
|
break
|
||||||
case "askBio":
|
case "askBio":
|
||||||
if ($u->oneEdit != $u->status) {
|
if ($u->oneEdit != $u->status) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user