Simple telegram bot to download from telegram or web and upload to telegram.
For deployment on Termux.
Powered by @Bots137
- Download Command: Use
/dlfor 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
/queuefor 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.
- Download Termux from f-droid here
Follow these steps to get the bot running on your Android device:
pkg update && pkg upgrade -y
pkg install python ffmpeg aria2 git -y
git clone https://github.com/rahulkhatri137/reupload137
cd reupload137
pip install hydrogram aiohttp tgcrypto
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
- Go to https://my.telegram.org
- Login
- API development tools
- Create app
- Copy API_ID & API_HASH
- Open Telegram
- Search @BotFather
- Get your bot API token
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) |
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
- Aria2: Must be installed in your environment (
pkg install aria2). - FFmpeg: Required for generating video thumbnails and metadata.
- Python 3.9+: Recommended version.