Spaces:
Running
Running
File size: 473 Bytes
c2ab730 ae186ba c2ab730 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Telegram Web App</title>
<script src="https://telegram.org/js/telegram-web-app.js"></script>
</head>
<body>
<h2>Welcome 👋</h2>
<p>This app is opened from Telegram.</p>
<button onclick="sendData()">Send Data to Bot</button>
<script>
const tg = window.Telegram.WebApp;
tg.ready();
function sendData() {
tg.sendData("Hello from Hugging Face!");
}
</script>
</body>
</html> |