Skip to content

RtiM0/telegram-download-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Download Bot

Telegram bot to download files on Telegram with no size limit.

Requirements

  • Python 3.7+

Install

  1. Install this bot:
    git clone https://github.com/RtiM0/telegram-download-bot.git
    cd telegram-download-bot
    python3 -m venv env
    source env/bin/activate
    python -m pip install -r requirements.txt
    deactivate
  2. Set your Bot Token (can be obtained by @BotFather) in line 14
    TOKEN = "BOT-TOKEN"
    Set your output directory to store the downloaded files in line 16
    OUTPUT_DIR  =  "/home/potato/tgdownloadbot/"
  3. You need to run Telegram Bot API Server locally on your machine to bypass the 20MB Download limit imposed with official Bot API. Use this guide to quickly install Telegram Bot API Server locally.
  4. Run the Telegram Bot API Server
    cd telegram-bot-api/bin/
    ./telegram-bot-api --api-id <API-ID> --api-hash <API-HASH> --local
  5. In a new terminal run the bot.
    cd telegram-download-bot
    source env/bin/activate
    python bot.py

Usage

Just send or forward the bot any document and it will download it on your server!