Skip to content

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.

Notifications You must be signed in to change notification settings

bisnuray/URLUploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

URLUploader Telegram Bot

GitHub Repo stars GitHub issues GitHub pull requests GitHub contributors GitHub forks

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.


✨ 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, pyleaves and aiohttp 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.

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

  1. Open the config.py file in your favorite text editor.
  2. Replace the placeholders for API_ID, API_HASH, SESSION_STRING, and BOT_TOKEN with your actual values:

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

Feel free to reach out if you have any questions or feedback.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages