Skip to content

Instantly share code, notes, and snippets.

@sweis
Created February 25, 2026 06:18
Show Gist options
  • Select an option

  • Save sweis/65f0c7d843b86499d32be90090bcae86 to your computer and use it in GitHub Desktop.

Select an option

Save sweis/65f0c7d843b86499d32be90090bcae86 to your computer and use it in GitHub Desktop.
<html><body>
<h2>Telegram WebView Bridge Detection</h2>
<div id="r" style="font-size:18px;padding:20px;"></div>
<script>
var r=document.getElementById('r'),f=[];
if(window.TelegramWebviewProxy){
f.push('FOUND: TelegramWebviewProxy (bot bridge) - postEvent() available');
}
if(window.TelegramWebview){
f.push('FOUND: TelegramWebview (browser bridge)');
f.push('resolveShare() is callable by ANY website in this browser');
}
if(window.TelegramGameProxy){
f.push('FOUND: TelegramGameProxy (game bridge)');
}
if(f.length===0){
r.innerHTML='<b style="color:green">No JS bridge detected.</b><br>Open this in Telegram in-app browser to test.';
}else{
r.innerHTML='<b style="color:red">JS BRIDGE EXPOSED:</b><br>'+f.join('<br>');
}
</script>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment