-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredir.html
More file actions
28 lines (26 loc) · 1 KB
/
redir.html
File metadata and controls
28 lines (26 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>
(function() {
const BOT_USERNAME1 = 'SciPharmBot'
const BOT_USERNAME2 = 'CognitiveIntegrationBot'; // Change this
const params = new URLSearchParams(window.location.search);
const invId = params.get('InvId');
const signature = params.get('SignatureValue');
if (invId && signature) {
const data = invId + '_' + signature;
if (confirm("Выберите бота:\nOK = mvp\nОтмена = для разработки")) {
window.location.href = 'https://t.me/' + BOT_USERNAME1 + '?start=' + data;
} else {
window.location.href = 'https://t.me/' + BOT_USERNAME2 + '?start=' + data;
}
} else {
window.location.href = 'https://t.me/' + BOT_USERNAME;
}
})();
</script>
</head>
<body></body>
</html>