Skip to content

Discover the location of nearby Telegram users ๐Ÿ“ก๐ŸŒ

License

Notifications You must be signed in to change notification settings

LexiSux/telegram-nearby-map

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Telegram Nearby Map

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

Inspired by Ahmed's blog post and a Hacker News discussion. Developed by github.com/tejado.

Telegram Nearby Map Screenshot

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
  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:https://localhost:3000 and have fun

Dependencies

To avoid that you have to build TDLib yourself (https://github.com/tdlib/td#building), I added tdlib.native in the lib/tdlib folder. Please note that this is an external dependency that has not been fully reviewed by me!

Changelog

2021-11-13

  • Added tdlib.native for Linux (now it works in GitHub Codespaces)
  • Updated all dependencies
  • Bugfixes

About

Discover the location of nearby Telegram users ๐Ÿ“ก๐ŸŒ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.9%
  • CSS 21.2%
  • HTML 4.9%