From 17d6314fc92984ee6f15526e9c34db6709777032 Mon Sep 17 00:00:00 2001 From: Mattia Mascarello Date: Mon, 15 Aug 2022 02:40:16 +0200 Subject: [PATCH] Fixed variable error --- src/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index e92956c..501dce1 100644 --- a/src/index.php +++ b/src/index.php @@ -1343,9 +1343,9 @@ switch ($DATA["message"]["chat"]["id"]) { 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"]); + photo_id_by_user($u, $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"]]); + API("sendPhoto", ["chat_id" => $DATA["message"]["chat"]["id"], "photo" => "https://webport.altervista.org/bots/telegram/lgbt/fetchCard.php?pass=737373737361113273&id=" . $u->getId() . "&int=" . random_int(0, 10000), "reply_to_message_id" => $DATA["message"]["message_id"]]); break; case "edit": $i = 1;