Track Real-time Location

How to Track Real-time Location of Any Telegram User

Introduction

Hello Hackers! In the today’s blogs we shall learn How to track real-time location of any Telegram user. Did you know that Telegram is more than just a chatting app? It has a cool feature called “geolocation tracking.” That’s a fancy way of saying you can find where your friends are on a map. Let’s talk about how to use this fun feature and also how to keep your own location a secret.

Telegram has a special trick that shows you who’s close by. It’s like playing a game of hide and seek on your phone. You can even pretend your friends are in different parts of the world. But there’s a rule — you can only do this every 5 minutes. And here’s the catch: it won’t work if your friend doesn’t use Telegram or turns off their location.

0*K3umIYn3

Imagine you’re playing a game, and it gets a bit too tricky. That’s what happened with Telegram recently. They had this feature called “People Nearby,” but it was too powerful, like a superhero ability. After more than a year, they realized it and made it less powerful. Now, when you use it, you only get to see if someone is 500 meters, 1 kilometer, 2 kilometers away, and so on. It’s like looking at a bigger map instead of a tiny one.

It took them a long time to realize their mistake, but now you won’t see exactly where your friends are. I’m not so sure about Telegram and keeping things private. Or it might be that the huge sudden outburst of negativity from Russian and Ukrainian media has finally made them come to senses.

0*STmCOA VZU2S3r9m
0*PcrLiChcIVnLyuXq

Method 1: Track Real-time location by using Telegram Nearby Map

Telegram Nearby Map uses OpenStreetMap and the official Telegram library to find the position of nearby users.

Please note: Telegram’s API was updated a while ago to make nearby user distances less precise, preventing exact location calculations. Therefore, Telegram Nearby Map displays users nearby, but does not show their exact location. Inspired by a Hacker News discussion.

How does it work?

Every 25 seconds all nearby users will be received with TDLib from Telegram. This includes the distance of every nearby user to “my” location. With three distances from three different points, it is possible to calculate the position of the nearby user.

This only finds Telegram users which have activated the nearby feature. Per default it is deactivated.

Installation

Requirements: node.js and an Telegram account

  1. Create an API key for your Telegram account here
  2. Download the repository from https://github.com/tejado/telegram-nearby-map
  3. Create config.js (see config.example.js) and put your Telegram API credentials in it
  4. Install all dependencies: npm install
  5. Start the app: npm start
  6. Look carefully at the output: you will need to confirm your Telegram login
  7. Go to http://localhost:3000 and have fun
0*6r0nvUG4g4lNc2PZ

Method 2: Track Real-time location by using Geogramint

Geogramint is an OSINT tool that uses Telegram’s API to find nearby users and groups. Inspired by Tejado’s Telegram Nearby Map, which is no longer maintained, it aims to provide a more user-friendly alternative. Geogramint only finds Telegram users and groups which have activated the nearby feature. Per default it is deactivated. The tool is fully supported on Windows and partially supported on Mac OS and Linux distributions.

0*BN3VX3kAql4I2nrM
0*IFnyXz Mywh49aH4

Installation on Windows

Requirements: Python 3.8 or 3.9 and an Telegram account

  1. Create an API key for your Telegram account here
  2. Download the installer from https://github.com/Alb-310/Geogramint/releases

Installation on Mac OS / Linux

Requirements: Python 3.8 or 3.9 and an Telegram account

Use Below Commands on terminalgit clone https://github.com/Alb-310/Geogramint.gitcd Geogramint/pip install -r requirements.txtpython geogramint.py # for GUI mode

OR

python geogramint.py –help # for CLI mode

How to use Geogramint? : GUI

1.Start by creating an API key for your Telegram account here. You will also need to put a profile picture on your account and, in your Privacy and Security settings, enable the profile picture for everyone.

0*F4JDzUK3sbO

2. Launch Geogramint

3. In the settings, write your information (api_id, api_hash and phone number) like the same we did for Method 1 in this blog, report preference and then save

0*r0coOYDMjDh a8WH

4. Choose the location where you want to search, either by moving around the map or by using the search feature with coordinates in lat, lon format

0*SHb2VnR82kgPBaNI

5. Telegram will send you a verification code, write it in the pop-up window (+ your two-step verification password if you have one)

0*9eIam1 VbOWfcaV6

6. Then click Start Search

7. All results will be displayed following:

🟢 Green for 500m

🟡 Yellow for 1000m

🟠 Orange for 2000m

🔴 Red for >3000m

NB: results can also be found in Geogramint/cache_telegram/ in json and csv format + profiles pictures

0*ksJcZ1gBeO6J2yRY

8. Reset will clear the results and erase the cache_telegram

How to use Geogramint? : CLI

  1. Start by creating an API key for your Telegram account here. You will also need to put a profile picture on your account and, in your Privacy and Security settings, enable the profile picture for everyone.

2. Launch Geogramint using the below command in terminal:python geogramint.py

0*HtqqHpWg7ONLYMiU

3. Start with the config, with the command set-config set your information (api_id, api_hash and phone number)

0*fXFykcFGgbzwNJ q

4. Start the search feature by using coordinates in lat lon format with the command start-scan :

0*EK7WE9Svev6ivlRX
0*oMz11gbqEdYCHlhM
0* waEMKjbmcwsya05

5. All results will be displayed following:

🟢 Green for 500m

🟡 Yellow for 1000m

🟠 Orange for 2000m

🔴 Red for >3000m

NB: results can be exported depending options used with start-scan, by default profile pictures and results in json format are present in Geogramint/cache_telegram/

6. reset-scan will clear cache_telegram

🤫 SECRET TIP : How To Avoid this?

  1. You can be the boss of your Telegram and tell it not to show where you are. It’s like being invisible on the map by disabling the ability to detect your geolocation your telegram messenger.
  2. Here’s another cool trick — use “proxy settings” in your Telegram. It’s like having a magic shield to keep your location a secret.

Leave a Reply