karlicoss / telegram-backup-to-txt

Tool to dump telegram into text files for quick search (e.g. with grep)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Tool to dump telegram into text files for quick search (e.g. with grep)


Languages

Language:Python 100.0%