URLUploader
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.
Install / Use
/learn @bisnuray/URLUploaderREADME
✨ Features
- 📥 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.
Requirements
Before you begin, ensure you have met the following requirements:
- Python 3.8 or higher.
pyrofork,tgcrypto,pyleavesandaiohttplibraries.- 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_STRINGOpen @SmartUtilBot. Bot and use /pyro command and then follow all instructions.
Installation
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.
Configuration
- Open the
config.pyfile in your favorite text editor. - Replace the placeholders for
API_ID,API_HASH,SESSION_STRING, andBOT_TOKENwith 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.
Deploy the Bot
git clone https://github.com/bisnuray/URLUploader
cd URLUploader
python uploder.py
Usage
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!
Author
- Name: Bisnu Ray
- Telegram: @itsSmartDev
Feel free to reach out if you have any questions or feedback.
Related Skills
node-connect
337.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.2kCommit, push, and open a PR
