Skip to content
Tool to dump telegram into text files for quick search (e.g. with grep)
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
.gitignore
README.org
convert_to_plaintext.py

README.org

Script to convert HTML output from telegram_backup tool to plaintext with proper filenames.

I’m using it for quick search (e.g. grep) in messages without having to go to web interface/mobile app. You can read more about it here.

Usage

  1. Read usage for telegram_backup to backup your account. Don’t forget to run --export html!
  2. Run this script with the same --target and --account arguments as for backup script, and pass --output directory.

Personally I’ve got all this set up as a daily Cron job.

Dependencies

apt install sqlite3 html2text

You can’t perform that action at this time.