var protoUrl = "tg:\/\/resolve?domain=TelegramUserName";
if (false) {
var iframeContEl = document.getElementById('telegramIframe') || document.body;
var iframeEl = document.createElement('iframe');
iframeContEl.appendChild(iframeEl);
var pageHidden = false;
window.addEventListener('pagehide', function () {
pageHidden = true;
}, false);
window.addEventListener('blur', function () {
pageHidden = true;
}, false);
if (iframeEl !== null) {
iframeEl.src = protoUrl;
}
setTimeout(function() {
if (!pageHidden) {
window.location = protoUrl;
}
}, 2000);
}else if (protoUrl) {
setTimeout(function() {
window.location = protoUrl;
}, 100);
}
Last active
December 27, 2016 00:06
-
-
Save ali-master/ed513d4f61a881c89613969264aeebb7 to your computer and use it in GitHub Desktop.
Lunch telegram link with installed Telegram application
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment