Combination of tools to download your telegram data.
Download dialogs meta data for account.
--dialogs_limit
number of dialogs
-h
show this help message and exit
--config_path
path to config file
--debug_mode
Debug mode
Download all messages from the dialogs.
Use flags --skip_private
, --skip_groups
, and --skip_channels
to skip private chats, groups, and channels respectively.
Python 3.8.13
- create virtual env
python -m venv .venv
- activate virtual env
. .venv/bin/activate
- install dependencies
pip install -r requirements.txt
- get your credentials https://my.telegram.org/apps
- set credentials (api_id, api_hash) in config/config.json (can be based on the config_example.json)
python 0_download_dialogs_list.py --dialogs_limit -1
python 1_download_dialogs_data.py --dialogs_ids -1 --dialog_msg_limit -1