alfem / telegram-downloader-bot

A Telegram bot for file downloading automation
Other
124 stars 49 forks source link

telegram-downloader-bot

A Telegram bot for file downloading automation

If you have got an Internet connected computer or a NAS and you want to automate file downloading from Telegram channels, this bot is for you. You can share photos, audios, or small files with it and the bot will download them as well.

IMPORTANT: Telegram set up a limit to the size a bot can download (20Mb currently). If you plan to download big files, a bot will not work. Take a look on my alternative project: https://github.com/alfem/telegram-download-daemon

Installation

Just create a new Telegram bot (https://core.telegram.org/bots), edit this script and fill in the fields:

Thanks to @mitto98 contribution you can use enviroment variables instead of editing the python file.

Install the python bot library, from Gihub (https://github.com/python-telegram-bot/python-telegram-bot) or using pip ( https://pypi.python.org/pypi/python-telegram-bot/). There are many telegram modules around. Do not use another one with a similar name.

Also "request" module is needed. It is very popular and probably you have it installed already. If not, just use pip or your system package manager.

Usage

Run the script (or the Docker container) and talk to your new bot!

You can: