/telegram_doc_downloader

Download documents from a public channel in telegram

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

telegram_doc_downloader

Download documents from a public channel in telegram This script will download documents from a public telegram channel also check for files that are already downloaded and skip them

How to use:

lets say you want to download document from a telegram channels called channel1, channel2, channel3 and so on for 10 pages

to do so

edit config.py
CHANNELS = ["channel1", "channel2", "channel3"]
PAGES = 10

To change the directory where documents will get downloaded Lets say you want to download documents to "~/telegram/files"

edit config.py
DOWNLOAD_DIR = "~/telegram/files"

then just run the python script

chmod +x downloader.py
./downloader.py

if you want a prompt to download every file then type y or Y and press Enter(return) key OR if you want to download every file without any prompt type any other key except y or Y e.g. N, n, x or X etc in the following prompt

Do you want download prompt for every file (y/Y for prompt OR any other key for No prompt)? 

More Info and Credits:

This is inspired from DL-Telegram-by-file-attachment

and credits to xtrime for telegram to json server