-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
173 lines (158 loc) · 6.2 KB
/
index.html
File metadata and controls
173 lines (158 loc) · 6.2 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Telegram User Finder - مُعَرِّف مستخدم تلجيرام</title>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Meta Tags for SEO -->
<meta name="description" content="Find Telegram users easily by entering their user ID. This tool generates direct links for Telegram users.">
<meta name="keywords" content="Telegram, User Finder, Telegram User, ID Finder, Telegram Link Generator">
<meta name="author" content="Abdullah">
<!-- Open Graph Tags for Social Media Sharing -->
<meta property="og:title" content="Telegram User Finder">
<meta property="og:description" content="Easily find Telegram users by entering their user ID and generating direct links.">
<meta property="og:image" content="URL_TO_AN_IMAGE_THUMBNAIL">
<meta property="og:url" content="URL_OF_YOUR_WEBSITE">
<meta property="og:type" content="website">
<!-- Twitter Card Tags for Twitter Sharing -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Telegram User Finder">
<meta name="twitter:description" content="Easily find Telegram users by entering their user ID and generating direct links.">
<meta name="twitter:image" content="URL_TO_AN_IMAGE_THUMBNAIL">
<!-- Canonical URL -->
<link rel="canonical" href="URL_OF_YOUR_WEBSITE">
<!-- Styles and Fonts -->
<style>
body {
background-color: #0A1F44;
color: #ffffff;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
flex-direction: column;
font-family: 'Tajawal', sans-serif;
}
.container {
max-width: 400px;
padding: 20px;
background-color: #122A56;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
text-align: center;
}
.form-control {
background-color: #1C3A70;
color: #ffffff;
border: 1px solid #4A5F87;
}
.btn-primary {
background-color: #0066CC;
border-color: #0066CC;
}
.btn-primary:hover {
background-color: #005BB5;
border-color: #005BB5;
}
.footer {
margin-top: 20px;
text-align: center;
font-size: 0.9em;
}
.footer a {
color: #ffffff;
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
.lang-toggle {
margin-bottom: 20px;
text-align: center;
}
.lang-toggle button {
margin: 0 5px;
background-color: #0066CC;
color: white;
border: none;
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
}
.lang-toggle button.active {
background-color: #005BB5;
}
[lang="ar"] {
direction: rtl;
text-align: right;
}
</style>
</head>
<body lang="en">
<div class="container text-center">
<div class="lang-toggle">
<button id="enBtn" class="active">English</button>
<button id="arBtn">العربية</button>
</div>
<h2 id="title">Telegram User Finder</h2>
<p id="description">Enter the User ID to generate the link</p>
<form id="userForm">
<div class="mb-3">
<input type="text" class="form-control" id="userId" placeholder="Enter User ID" required>
</div>
<button type="submit" class="btn btn-primary w-100" id="searchBtn">Search</button>
</form>
</div>
<div class="footer">
<p>Developed by <a href="https://t.me/ABDO_x218" target="_blank">𝑨𝒃𝒅𝒖𝒍𝒍𝒂𝒉</a></p>
</div>
<!-- Bootstrap JS and dependencies -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.7/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.min.js"></script>
<!-- JavaScript -->
<script>
document.getElementById('userForm').addEventListener('submit', function(e) {
e.preventDefault();
var userId = document.getElementById('userId').value.trim();
if (userId) {
var telegramLink = `tg://openmessage?user_id=${userId}`;
window.location.href = telegramLink;
}
});
// Language toggle
const enBtn = document.getElementById('enBtn');
const arBtn = document.getElementById('arBtn');
const body = document.body;
enBtn.addEventListener('click', function() {
setLanguage('en');
});
arBtn.addEventListener('click', function() {
setLanguage('ar');
});
function setLanguage(lang) {
if (lang === 'en') {
body.setAttribute('lang', 'en');
document.getElementById('title').innerText = 'Telegram User Finder';
document.getElementById('description').innerText = 'Enter the User ID to generate the link';
document.getElementById('userId').placeholder = 'Enter User ID';
document.getElementById('searchBtn').innerText = 'Search';
enBtn.classList.add('active');
arBtn.classList.remove('active');
} else if (lang === 'ar') {
body.setAttribute('lang', 'ar');
document.getElementById('title').innerText = 'مُعَرِّف مستخدم تلجيرام';
document.getElementById('description').innerText = 'أدخل معرف المستخدم لإنشاء الرابط';
document.getElementById('userId').placeholder = 'أدخل معرف المستخدم';
document.getElementById('searchBtn').innerText = 'بحث';
enBtn.classList.remove('active');
arBtn.classList.add('active');
}
}
</script>
</body>
</html>