js
This commit is contained in:
5
resources/main/js/tg.js
Normal file
5
resources/main/js/tg.js
Normal 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;
|
||||
});
|
Reference in New Issue
Block a user