Get Your File !
function getsFile() {
const params = getUrlParams();
const go = params.get(‘go’);
if (go === “” || go === null) {
window.location = ‘https://www.kdtechtra.in/’;
return;
}
const nameOfBot = ‘potter_MovieBot’
const windowRedirect = () => {
let protoUrl = tg:\/\/resolve?domain=${nameOfBot}&start=${go};
window.location = protoUrl;
}
windowRedirect()
}
function getUrlParams() {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
return urlParams;
}