GitHub - Gentoo-Root - Telegram-Tracker - Track Online Status of A Given Telegram User PDF
GitHub - Gentoo-Root - Telegram-Tracker - Track Online Status of A Given Telegram User PDF
MIT license
70 stars 29 forks
Star Notifications
master Go to file
gentoo-root Add a workaround to make 'me' work again … on Oct 19, 2018 9
View code
telegram-tracker
This script allows to track your friend's online status changes.
Example output:
= means that the time is exact as returned by the Telegram server, and ~ means that the
time is measured locally and can be inexact.
README.md
How to run
First install the dependencies. You'll need Python 3 (at least 3.6) and Telethon package.
Then you need to register your Telegram application on the Telegram website. After you have
acquired api_id and api_hash , put them into settings/keys.py like this:
API_ID = 123456
API_HASH = '1234567890abcdef1234567890abcdef'
To begin tracking someone, start the script like this (the current working directory needs to
be this repository root):
Use the real phone number or a nickname. The special string "me" can be used to track
yourself (it can be useful if e.g. you suffer from dissociative identity disorder or if you're just
doing some testing).
How it works
The script polls the user status every 15 seconds. If the status switches to online, it can't
determine the exact time of the transition and shows the time when it found out this
information. On the other hand, offline transitions are measured exactly as the Telegram
server returns the exact time of going offline. The script may not detect short (less than 15
seconds) transitions to offline and back online. It can, however, detect that the user was
online for short time (last online time returned by the server changes).
The best results can be achieved if you can see the user's last online time in the Telegram
application.
License
The software is licensed under MIT License. The full text and the copyright notice is in
LICENSE file.
Releases
No releases published
Packages
No packages published
Languages
Python 100.0%