This commit is contained in:
2025-01-03 18:34:03 +03:00
parent d2ffae95dc
commit 069a5b223f
2 changed files with 8 additions and 0 deletions

5
resources/main/js/tg.js Normal file
View File

@ -0,0 +1,5 @@
document.addEventListener("DOMContentLoaded", () => {
let tg = window.Telegram.WebApp;
let username_tag = document.getElementById("username_tag")
username_tag.innerHTML = tg.initDataUnsafe.user.username;
});