Skip to content

About

Telegram group chat parser to JSON

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Telegram Group Analyzer

This script is given a group name, and it fetches all messages/replies/reactions/etc sent in this chat. It connects to a TG account using the TDLib (Telegram Database Library) API.

Init

  1. cp .env_example .env
  2. Login to your TG account here
  3. Click API development tools
  4. A Create new application window will appear. Fill in your application details. There is no need to enter any URL, and only the first two fields (App title and Short name) can currently be changed later.
  5. Click on Create application at the end. Remember that your API hash is secret and Telegram won’t let you revoke it. Don’t post it anywhere!
  6. Edit the .env file and fill in tg_app_api_id and tg_app_api_hash.
  7. pip -r requirements.txt

Run it

// -l represent the amount of messages needed to analyze.
python3 main.py -g "My Group Name" -l 200

About

Telegram group chat parser to JSON

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages