From a9a32db54c9a6f361d4b3477d6eb081f704f38b0 Mon Sep 17 00:00:00 2001 From: Kavalar Date: Sat, 4 Jan 2025 03:02:18 +0300 Subject: [PATCH] debug --- app/modules/tgbot/views/tgbot/layout/main.php | 1 - resources/main/js/tg.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/modules/tgbot/views/tgbot/layout/main.php b/app/modules/tgbot/views/tgbot/layout/main.php index fdffbc2..de0d12f 100644 --- a/app/modules/tgbot/views/tgbot/layout/main.php +++ b/app/modules/tgbot/views/tgbot/layout/main.php @@ -69,7 +69,6 @@
- diff --git a/resources/main/js/tg.js b/resources/main/js/tg.js index b18f7ba..cb0e089 100644 --- a/resources/main/js/tg.js +++ b/resources/main/js/tg.js @@ -3,7 +3,7 @@ document.addEventListener("DOMContentLoaded", () => { let username_tag = document.getElementById("username_tag") let user_id_tag = document.getElementById("user_id_tag") 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) }); \ No newline at end of file