From d2be580fb03df6c35ec62c8ebf2519dcea415b6a Mon Sep 17 00:00:00 2001 From: bpqvgq Date: Thu, 22 Jul 2021 19:27:27 +0300 Subject: [PATCH] Update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 164874d..809775e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,38 @@ -# tg-parse-channels -Telegram bot for parsing channels and posting pictures and videos to your own channels with pre-moderation. +# Parse Telegram Channels +_Telegram bot for parsing telegram channels._ + +### Run script +Before run, set Telegram credentials and Parser settings in file `settings.py`. + +Create virtual environment +``` +python3 -m venv venv +``` + +Enter to `venv` +``` +. venv/bin/activate +``` + +Install python modules from requirements.txt +``` +pip install -r requirements.txt +``` + +Start script +``` +python3 main.py +``` + +### Check images for integrity and correctness +Example +``` +python3 is_photo.py + +Type absolute path to photos directory: + + files to remove: + + +type YES for delete: +```