URLUploader: An advanced Telegram bot script to download files from direct download URLs, check file sizes, rename files, and upload them with progress indicators directly to Telegram.
- 📥 Download files from direct download URLs and upload them to Telegram.
- 📊 Shows download and upload progress using custom handlers.
- ✏️ Rename Option: Allows renaming the file before uploading.
Before you begin, ensure you have met the following requirements:
- Python 3.8 or higher.
pyrofork
,tgcrypto
,pyleaves
andaiohttp
libraries.- A Telegram bot token (you can get one from @BotFather on Telegram).
- API ID and Hash: You can get these by creating an application on my.telegram.org.
- To Get
SESSION_STRING
Open @SmartUtilBot. Bot and use /pyro command and then follow all instructions.
To install pyrofork
, tgcrypto
, pyleaves
and aiohttp
run the following command:
pip install pyrofork tgcrypto pyleaves aiohttp
Note: If you previously installed pyrogram
, uninstall it before installing pyrofork
.
- Open the
config.py
file in your favorite text editor. - Replace the placeholders for
API_ID
,API_HASH
,SESSION_STRING
, andBOT_TOKEN
with your actual values:API_ID
: Your API ID from my.telegram.org.API_HASH
: Your API Hash from my.telegram.org.SESSION_STRING
: The session string generated using @SmartUtilBot.BOT_TOKEN
: The token you obtained from @BotFather.
git clone https://github.com/bisnuray/URLUploader
cd URLUploader
python uploder.py
Send a URL to the bot in a private message. If the file is valid and within the size limit, the bot will present two options:
- Default: Download and upload the file with its original name.
- Rename: Allows you to specify a new filename before upload.
- Download Progress: While downloading and uploading, progress messages display current status.
✨ Note: If you found this repo helpful, please fork and star it. Also, feel free to share with proper credit!
- Name: Bisnu Ray
- Telegram: @itsSmartDev
Feel free to reach out if you have any questions or feedback.