nebula123 / telegram-downloader-bot

A Telegram bot for file downloading automation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telegram-downloader-bot

A Telegram bot for file downloading automation

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

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

  • TELEGRAM_BOT_TOKEN: the unique token that indentifies your bot
  • TELEGRAM_CHAT_ID: you user (or group) id in Telegram. If you do not know it, you can talk to @get_id_bot and send it a "/my_id" command
  • DOWNLOADS_FOLDER: Change the download directory is desired.

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.

Run the script and talk to your new bot!

You can:

  • Copy a file or photo post from a channel and share it with your downloader bot
  • Say "?" to your bot to check how many downloads are waiting in its queue
  • Say "quit" to stop the bot

About

A Telegram bot for file downloading automation


Languages

Language:Python 100.0%