Skip to content

rahulkhatri137/reupload137

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Telegram ReUploader Bot

Simple telegram bot to download from telegram or web and upload to telegram.

For deployment on Termux.

Powered by @Bots137


โœจ Key Features

  • Download Command: Use /dl for both URLs and Telegram files.
  • Upload Command: Use /up (for files) and /fdir (for all files in directory) for uploading from local storage.
    CAUTION - Create copy in advance as original files will be deleted.
  • Queue Command: Use /queue for list of active and pending tasks.
  • Minimalist Terminal: Clean terminal logs for easy monitoring.
  • Dual Engine: ๐ŸŒ Aria2 or ๐Ÿ”น TG.
  • Real-time Progress: Precise progress bars with speed and ETA.
  • Auto-Cleanup: Automatically wipes the download directory before every task to save storage.
  • Smart Queue: Dynamic queue management with positional tracking.
  • Custom Naming: Support for custom filenames.

๐Ÿ“ฒ Termux Setup Guide

  • Download Termux from f-droid here

Follow these steps to get the bot running on your Android device:

1. Update & Install Dependencies

pkg update && pkg upgrade -y
pkg install python ffmpeg aria2 git -y

2. Clone and Install Requirements

git clone https://github.com/rahulkhatri137/reupload137
cd reupload137

pip install hydrogram aiohttp tgcrypto 

3. Configure the Bot

Open bot.py using nano and fill in your credentials:

API_ID = 1234567           
API_HASH = "your_hash"     
BOT_TOKEN = "your_token"   
OWNER_ID = 123456789  
Get Telegram variables

Get Telegram API

  1. Go to https://my.telegram.org
  2. Login
  3. API development tools
  4. Create app
  5. Copy API_ID & API_HASH

Bot Token

  1. Open Telegram
  2. Search @BotFather
  3. Get your bot API token

4. Run the Bot

python bot.py

๐Ÿค– Bot Commands via @BotFather

Command Usage Description
/dl [url] [name.mp4] Direct URL download Downloads from web using Aria2 engine.
/dl [name.mp4] Reply to a TG file Downloads TG file and renames it.
/up [/path/file.mp4] Specify path to file Uploads the local file. (original file will be deleted)
/queue View status Shows currently processing file and waiting list.
/cancel Terminate task Stops the current active download and cleans up.
/fdir [/path/folder] Specify path to folder Uploads the local files inside the folder. (original files will be deleted)

๐Ÿ“Š Terminal Log Format

HH:MM:SS | STAGE      | SRC   | FILENAME
12:05:01 | QUEUED     | Aria2 | movie.mkv
12:05:02 | DOWNLOAD   | Aria2 | movie.mkv started
12:08:40 | COMPLETE   | Aria2 | movie.mkv


โš ๏ธ Requirements

  • Aria2: Must be installed in your environment (pkg install aria2).
  • FFmpeg: Required for generating video thumbnails and metadata.
  • Python 3.9+: Recommended version.

About

Termux optimized simple telegram bot to download and upload the files to telegram as media

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages