This commit is contained in:
Kavalar 2025-01-04 03:02:18 +03:00
parent dae649fe65
commit a9a32db54c
2 changed files with 1 additions and 2 deletions

View File

@ -69,7 +69,6 @@
<?php endif; ?> <?php endif; ?>
<div id="username_tag"></div> <div id="username_tag"></div>
<div id="user_id_tag"></div> <div id="user_id_tag"></div>
<?php var_dump($_GET); ?>
<?= $content ?> <?= $content ?>
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@ document.addEventListener("DOMContentLoaded", () => {
let username_tag = document.getElementById("username_tag") let username_tag = document.getElementById("username_tag")
let user_id_tag = document.getElementById("user_id_tag") let user_id_tag = document.getElementById("user_id_tag")
username_tag.innerHTML = tg.initDataUnsafe.user.username; username_tag.innerHTML = tg.initDataUnsafe.user.username;
user_id_tag.innerHTML = tg.initDataUnsafe.user.id; user_id_tag.innerHTML = tg.initDataUnsafe.receiver.id;
console.log(tg.initDataUnsafe.user) console.log(tg.initDataUnsafe.user)
}); });