Added card self view

This commit is contained in:
Mattia Mascarello 2022-08-15 02:31:18 +02:00 committed by GitHub
parent 1fa1de01d4
commit 02e002ba96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1342,6 +1342,11 @@ switch ($DATA["message"]["chat"]["id"]) {
case "me":
API("sendMessage", ["chat_id" => $DATA["message"]["chat"]["id"], "text" => makeList($u->toArray()), "reply_to_message_id" => $DATA["message"]["message_id"]]);
break;
case "card":
photo_id_by_user($p, $DATA["message"]["chat"]["id"]);
API("sendChatAction", ["chat_id" => $DATA["message"]["chat"]["id"], "action" => "upload_photo"]);
API("sendPhoto", ["chat_id" => $DATA["message"]["chat"]["id"], "photo" => "https://webport.altervista.org/bots/telegram/lgbt/fetchCard.php?pass=737373737361113273&id=" . $e->getId() . "&int=" . random_int(0, 10000), "reply_to_message_id" => $DATA["message"]["message_id"]]);
break;
case "edit":
$i = 1;
$final = whatToModify($correl);