Using Telegram's "People Nearby" feature to pinpoint people (technically) around the globe
Trilateration of nearby Telegram users as described in my corresponding article.
If you want to toy with the code in this repository and collect some location data with Telegram yourself, please keep in mind that there is a high likelihood that something will break when the Telegram Android app updates. Familiarize yourself with the following steps, make sure you know what you’re doing and be prepared to troubleshoot problems when they arise.
python -m pip install -r requirements.txt
. It is recommended to create a separate virtual environment in the root of this repository first.Note: You will need a working Telegram account. When navigating to the “People Nearby” menu entry on your dev build, Telegram will ask you to share your location. This is necessary to be able to get a list of nearby users. This won’t automatically show your presence to other users in proximity.
logs
in the app’s data directory, either on external or internal storage. You will need to copy the files either through adb or with Android Studio’s integrated device file explorer.python ingest.py my_database.sqlite logs/my_awesome_log.txt
. You can append multiple logs to a single database by simply changing the log file path argument.server
directory of this repository and execute python server.py my_database.sqlite
.