Skip to content

🕵️‍♂️ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.

added telegram support

syswraith5c0c2f3a4caf
diff --git a/user_scanner/__main__.py b/user_scanner/__main__.py
index 682082e..dc56a33 100644
--- a/user_scanner/__main__.py
+++ b/user_scanner/__main__.py
@@ -98,4 +98,4 @@ def main():
run_checks(args.username)
if __name__ == "__main__":
- main()
+ main()
\ No newline at end of file
diff --git a/user_scanner/social/telegram.py b/user_scanner/social/telegram.py
new file mode 100644
index 0000000..23d447f
--- /dev/null
+++ b/user_scanner/social/telegram.py
@@ -0,0 +1,22 @@
+import httpx
+import re
+
+def validate_telegram(user: str) -> int:
+ """
+ Checks if a Telegram username is available.
+ Returns: 1 -> available, 0 -> taken, 2 -> error
+ """
+ url = f"https://t.me/{user}"
+ headers = {
+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"
+ }
+
+ try:
+ r = httpx.get(url, headers=headers, follow_redirects=True, timeout=3.0)
+ if r.status_code == 200:
+ return 0 if re.search(r'<div[^>]*class="tgme_page_extra"[^>]*>', r.text) else 1
+ return 2
+ except (httpx.ConnectError, httpx.TimeoutException):
+ return 2
+ except Exception:
+ return 2