Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
h1w authored Jul 22, 2021
1 parent 2f6ff32 commit d2be580
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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: <input absolute path to photos directory>
<count> files to remove:
<list of files>
type YES for delete: <type YES or something for keep files>
```

0 comments on commit d2be580

Please sign in to comment.