The bot allows users to input a mobile number, and in return, it fetches:
- The Truecaller name (registered name of the number)
- The location (usually city/state or country)
- The associated Instagram ID (if available or linked)
🛠️ Features
Feature | Description |
---|---|
🔢 Number Input | User sends a mobile number to the bot |
📇 Truecaller Name | Returns the name associated with that number (via Truecaller) |
📍 Location | Shows general location (from carrier metadata or Truecaller) |
📸 Instagram ID | Attempts to find and return Instagram profile linked to the number |
🧑💻 How It Could Work (Technically)
Note: Most of the APIs you’d need are not officially public, and using them can be against their terms of service.
1. Telegram Bot Setup
Use Python with python-telegram-bot
or Node.js with node-telegram-bot-api
.
2. Truecaller Integration (Unofficial API)
- Use a reverse-engineered Truecaller API or session-based scraping.
- You’d need a Truecaller session token or authenticated headers.
- Send the number → receive JSON response with name, carrier, location, email, etc.
3. Instagram ID Lookup
This is not directly possible via an API.
- Use OSINT (Open Source Intelligence) techniques.
- Example methods:
- Check if the number is linked to any Instagram account via password recovery.
- Use public people search engines or contact discovery (very limited).
- Scraping third-party people databases (risky and unreliable).
4. Geolocation
- If Truecaller gives a location, use it.
- Otherwise, infer from carrier (using number prefixes or lookup tables).
⚖️ Legal & Ethical Concerns
❌ Not Legal in Many Countries
- Accessing or scraping data from Truecaller or Instagram without permission violates their terms of service.
- Could breach privacy laws like GDPR, CCPA, etc.
- Could lead to account bans or legal action.
⚠️ Risk of Misuse
- Bots like this can be used for stalking, harassment, or doxing.
- Ethical development would require explicit consent from the number owner.
✅ Safer, Legal Alternatives
If you still want to build a number lookup bot ethically, here are better options:
- Let users look up their own number info (like what others see on Truecaller).
- Use publicly available databases that are legal to access.
- Allow opt-in search (e.g., someone adds their number and social handle for networking)