Skip to main content

Telepathy: An OSINT toolkit for investigating Telegram chats.

Installation

Install from source

git clone https://github.com/jordanwildon/Telepathy.git

Navigate to the installation directory cd telepathy and run setup.py, this will set up the tool and install all the necessary dependencies.

sudo python3 setup.py install

or

pip3 install telepathy

Then register for and obtain your Telegram API details from my.telegram.org.

Usage

Upon installation completion, you will be able to use Telepathy. On first use, Telepathy will ask for your API details and then an authorization code that will be sent to your Telegram account. If you have two-factor authentication enabled, you'll be asked to input your Telegram password.

Usage: telepathy [OPTIONS]

Telepathy is an OSINT toolkit for investigating Telegram chats.

Options: --verbose Prints output to the terminal. -n, --name TEXT Specifies a chat to investigate. -a, --archive Archives the specified chat. -m, --media Archives media in the specified chat. -f, --forwards Scrapes forwarded messages. -p, --participants Scrapes members from the specified group. -u, --user TEXT Looks up a specified user ID. -i, --info TEXT Looks up a specified channel by ID. -l, --location TEXT Finds users near to specified coordinates. --help Show this message and exit.

Advanced tools

User Analysis tool Telepathy comes with an additional a user analysis tool that analyzes the post frequency of users based on archived chats. The tool works by gathering all CSV archives in the "./telepathy/advanced/analysis*dropbox" folder. Simply drop a selection of group archives into this folder and it will calculate the number of unique active posters and how often they have posted.

Usage: cd ./advanced/analysis_dropbox python3 user_analysis.py > analysis.csv

nb. when a user joins a group, it is considered a post in the above analysis. This is a tiny bug with Telepathy and will eventually be fixed but has been currently left in as it's still considered a signal of activity.

recon.py This tool will take a list of chat URLs (in the format of a to_archive.csv) then list basic information and the number of participants in each chat. Scheduled to run once a day, this can help you monitor the growth of a particular list of channels over time.

A note on how Telegram works

Telegram chats are organised into two key types: channels and megagroups/supergroups. Each module works slightly differently depending on the chat type. For example, subscribers of Channels can't be scraped with the members.py module. Channels can have seemingly unlimited subscribers, megagroups can have up to 200,000 members.

** Upcoming changes ** With the release of the Telepathy CLI interface, the toolkit has entered its next stage of production. Despite this, some bugs may still be present and some features are yet to be added. In some environments (particularly Windows), Telepathy struggles to effectively manage files and can sometimes produce errors. Fixes for these errors will come in due course.

Upcoming features include:

  • Re-adding a time specification flag for the archive module to set archiving for specific period.
  • Giving the archiver module the ability to archive comments on channel posts.
  • Reintroducing batch archiving based on a to_archive.csv.

Feedback

Please send feedback to @jordanwildon on Twitter

Usage terms

You may use Telepathy however you like, but your usecase is your responsibility. Be safe and respectful.

Credits

All tools created by Jordan Wildon (@jordanwildon). Alex Newhouse (@AlexBNewhouse) contributed to the early release of Telepathy.

Where possible, credit for the use of this tool in published research is desired, but not required.

Metadata

Release files for telepathy 1.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for telepathy 1.1.5
File Size Uploaded
telepathy-1.1.5.tar.gz 3.4 kB Details

Release files / telepathy-1.1.5.tar.gz

Download URL telepathy-1.1.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
35f20cd9a9e89126236e2d075d08dcb91b59c49e87fded60cb4484e51c728d26
BLAKE2b-256 checksum
How to use checksums
f1765fe0d5923c6614f6557678fd804d0fe148e031a23c557af2126e66f39c91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release history Release notifications | RSS feed

2.3.4

2 release files

2.3.3

1 release file

2.3.2

3 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.62

2 release files

2.2.61

2 release files

2.2.60

2 release files

2.2.59

2 release files

2.2.58

2 release files

2.2.57

2 release files

2.2.56

2 release files

2.2.55

2 release files

2.2.54

2 release files

2.2.53

2 release files

2.2.52

2 release files

2.2.51

2 release files

2.2.50

2 release files

2.2.20

3 release files

2.2.13

2 release files

2.2.12

2 release files

2.1.14

2 release files

2.1.13

2 release files

2.1.12

2 release files

2.1.11

2 release files

2.1.10

2 release files

2.1.9

1 release file

2.1.8

1 release file

2.1.7

1 release file

2.1.6

1 release file

2.1.5

1 release file

2.1.4

1 release file

2.1.3

1 release file

2.1.2

1 release file

2.1.1

1 release file

2.1.0

2 release files

2.0.0

2 release files

1.1.13

2 release files

1.1.12

2 release files

1.1.11

2 release files

1.1.10

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

1 release file

This release

1.1.5 This release

1 release file

1.1.4

2 release files

1.1.3

2 release files

1.1.1

1 release file

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page