This commit is contained in:
Kavalar 2025-01-04 03:23:39 +03:00
parent db530979a2
commit 6bc4bc72d2

View File

@ -2,8 +2,8 @@ document.addEventListener("DOMContentLoaded", () => {
let tg = window.Telegram.WebAppUser;
let username_tag = document.getElementById("username_tag")
let user_id_tag = document.getElementById("user_id_tag")
user_id_tag.innerHTML = tg.initDataUnsafe.user.language_code;
username_tag.innerHTML = tg.initDataUnsafe.user.username;
user_id_tag.innerHTML = tg.initDataUnsafe.user.id;
console.log(123)
});