2025-01-03 18:34:03 +03:00
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
|
|
let tg = window.Telegram.WebApp;
|
|
|
|
let username_tag = document.getElementById("username_tag")
|
|
|
|
username_tag.innerHTML = tg.initDataUnsafe.user.username;
|
2025-01-04 01:38:59 +03:00
|
|
|
|
2025-01-04 01:41:58 +03:00
|
|
|
console.log(tg.initDataUnsafe)
|
2025-01-03 18:34:03 +03:00
|
|
|
});
|