Mirrorbot
Official Repository: Telegram bot which can download torrents, mega, google drive, telegram document, any file/folder from rclone supported clouds and direct links + all yt-dlp supported sites, then upload them to google drive, telegram cloud or to one of rclone supported clouds
Install / Use
/learn @MOGAMBO-XD/MirrorbotREADME
This is a Telegram Bot written in Python for mirroring files on the Internet to your Google Drive, Telegram or to any rclone supported cloud.
Owner MOGAMBO
UPDATE TELEGRAM
Features
In each single file there is a major change from base code, it's almost totally different. Here some of features and fixes that I remember.
qBittorrent
- Qbittorrent support
- Select files from Torrent before and while downloading
- Seed torrents to specific ratio and time
- Edit Global Options while bot running from bot settings
Aria2c
- Select files from Torrent before and while downloading
- Seed torrents to specific ratio and time
- Netrc support
- Direct link authentication for specific link while using the bot (it will work even if only username or password)
- Improve aria.sh
- Fix all download listener functions and status
- Edit Global Options while bot running from bot settings
TG Upload/Download
- Leech support
- Split size for each user or task
- Thumbnail for each user or task
- Leech filename prefix for each user.
- Set upload as document or as media for each user
- 4GB file upload with premium account
- Upload all files to specific superGroup/channel.
- Leech Split size and equal split size settings for each user
- Ability to leech splitted file parts in media group. Setting for each user
- Download using premium account if available
- Download restricted messages (document or link) by tg private/public/super links
- Custom upload destination for each task or user
- Choose leech by bot or user session incase you have premium plan
- Stop duplicates for all tasks and setting for each user
- Download from Google Drive
- Counting Google Drive files/folders
- Search in multiple Drive folder/TeamDrive
- Recursive Search (only with
rootor TeamDrive ID, folder ids will be listed with non-recursive method). - Use Token.pickle if file not found with Service Account, for all Gdrive functions
- Random Service Account for each task
- Custom upload destination for each user
- Ability to choose token, drive and id from list with buttons
- Token.pickle for each user
- Default upload destination for each user
- Index link for each user
Status
- Clone Status
- Extract Status
- Archive Status
- Seed Status
- Status Pages for unlimited tasks
- Ability to cancel upload/clone/archive/extract/split
- Cancel all buttons for choosing specific tasks status to cancel
- Fix flooding issues
- Fix overall upload and download speed
Yt-dlp
- Switch from youtube-dl to yt-dlp and fix all conflicts
- Yt-dlp quality buttons
- Ability to use specific yt-dlp option for each task
- Custom default yt-dlp options for each user
- Fix download progress
- Embed original thumbnail and add it for leech
- All supported audio formats
Database
- Mongo Database support
- Store bot settings
- Store user settings including thumbnails, rclone config and token.pickle in database
- Store private files
- Store RSS data
- Store incompleted task messages
Torrents Search
- Torrent search support
- Search on torrents with Torrent Search API
- Search on torrents with variable plugins using qBittorrent search engine
Archives
- Zip instead of tar
- Using 7-zip tool to extract all supported types
- Extract rar, zip and 7z within folder or splits with or without password
- Zip file/folder with or without password
RSS
- Rss feed. Based on this repository rss-chan
- Filters added
- Edit any feed while running: pause, resume, edit command and edit filters
- Rss for each user with tag
- Sudo settings to control users feeds
- All functions have been improved using buttons from one command.
Rclone
- Download and Upload using rclone with and without random service accounts
- Ability to choose config, remote and path from list with buttons
- Ability to set rclone flags for each task or globally from config
- Rclone.conf for each user
- Clone server-side
- Rclone serve for combine remote to use it as index from all remotes
- Default upload destination for each user
Overall
- Docker image support for linux
amd64, arm64/v8, arm/v7 - Switch from sync to async
- SWitch from python-telegram-bot to pyrogram
- Edit variables and overwrite the private files while bot running
- Update bot at startup and with restart command using
UPSTREAM_REPO - Improve Telegraph
- Mirror/Leech/Watch/Clone/Count/Del by reply
- Mirror/Leech/Clone multi links/files with one command
- Custom name for all links except torrents. For files you should add extension except yt-dlp links
- Extensions Filter for the files to be uploaded/cloned for each user
- View Link button. Extra button to open index link in broswer instead of direct download for file
- Queueing System for all tasks
- Ability to zip/unzip multi links in same directory. Mostly helpful in unziping tg file parts
- Bulk download from telegram txt file or text message contains links seperated by new line
- Join splitted files that have splitted before by split(linux pkg)
- Sample video Generator
- Almost all repository functions have been improved and many other details can't mention all of them
- Many bugs have been fixed
From Base and other Repositories
- Mirror direct download links, Torrent, Mega.nz and Telegram files to Google Drive
- Copy files from someone's Drive to your Drive
- Download/Upload progress, Speeds and ETAs
- Mirror all youtube-dl supported links
- Docker support
- Uploading to Team Drive
- Index Link support
- Service Account support
- Delete files from Drive
- Multiple Trackers support
- Shell and Executor
- Add sudo users
- Extract password protected files
- Extract these filetypes
ZIP, RAR, TAR, 7z, ISO, WIM, CAB, GZIP, BZIP2, APM, ARJ, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, LZH, LZMA, LZMA2, MBR, MSI, MSLZ, NSIS, NTFS, RPM, SquashFS, UDF, VHD, XAR, Z, TAR.XZ
- Direct links Supported:
mediafire (file/folders), hxfile.co, streamtape.com, streamsb.net, streamhub.ink, streamvid.net, doodstream.com, feurl.com, upload.ee, pixeldrain.com, racaty.net, 1fichier.com, 1drv.ms (Only works for file not folder or business account), filelions.com, streamwish.com, send.cm (file/folders), solidfiles.com, linkbox.to (file/folders), shrdsk.me (sharedisk.io), akmfiles.com, wetransfer.com, pcloud.link, gofile.io (file/folders), easyupload.io, mdisk.me (with ytdl), terabox.com (file/folders) (you need to add cookies txt with name) terabox.txt.
How to deploy?
1. Installing requirements
- Clone this repo:
git clone https://github.com/MOGAMBO-XD/Mirrorbot Mirrorbot/ && cd Mirrorbot
- For Debian based distros
sudo apt install python3 python3-pip
Install Docker by following the official Docker docs
- For Arch and it's derivatives:
sudo pacman -S docker python
- Install dependencies for running setup scripts:
pip3 install -r requirements-cli.txt
2. Setting up config file
cp config_sample.env config.env
- Remove the first line saying:
_____REMOVE_THIS_LINE_____=True
Fill up rest of the fields. Meaning of each field is discussed below. NOTE: All values must be filled between quotes, even if it's Int, Bool or List.
1. Required Fields
BOT_TOKEN: The Telegram Bot Token that you got from @BotFather.StrOWNER_ID: The Telegram User ID (not username) of the Owner of the bot.IntTELEGRAM_API: This is to authenticate your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org.IntTELEGRAM_HASH: This is to authenticate your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org.Str
2. Optional Fields
USER_SESSION_STRING: To download/upload from your telegram account if user isPREMIUMand to send rss. To generate session string use this commandpython3 generate_string_session.pyafter mounting repo folder for sure.Str. NOTE: You can't use bot with private message. Use it with superGroup.DATABASE_URL: Your Mongo Database URL (Connection string). Follow this Generate Database to generate database. Data will be saved in Database: auth and sudo users, users settings including thumbnails for each user, rss data and incomplete tasks. NOTE: You can always edit all settings that saved in database from the official site -> (Browse collections).StrDOWNLOAD_DIR: The path to the local folder where the downloads should be downloaded to.StrCMD_SUFFIX: commands index number. This number will added at the end all commands.Str|IntAUTHORIZED_CHATS: Fill user_id and chat_id of groups/users you want to authorize. Separate them by space.IntSUDO_USERS: Fill user_id of users whom you want to give sudo permission. Separate them by space.IntDEFAULT_UPLOAD: Whetherrcto upload toRCLONE_PATHorgdto upload toGDRIVE_ID. Default isgd. Read More HERE.StrSTATUS_UPDATE_INTERVAL: Time in seconds after which the progress/status message will be updated. Recommended10seconds at least.IntAUTO_DELETE_MESSAGE_DURATION: Interval of time (in seconds), after which the bot deletes it's message and command message which is expected to be viewed instantly. NOTE: Set to-1to disable auto message deletion.IntSTATUS_LIMIT: Limit the no. of tasks shown in status message with buttons. Default is10. NOTE: Recommended limit is4tasks.IntEXTENSION_FILTER: File extensions that won't upload/clone. Separate them by space.StrINCOMPLETE_TASK_NOTIFIER: Get incomplete task messages aft
Related Skills
openhue
352.0kControl Philips Hue lights and scenes via the OpenHue CLI.
sag
352.0kElevenLabs text-to-speech with mac-style say UX.
weather
352.0kGet current weather and forecasts via wttr.in or Open-Meteo
casdoor
13.3kAn open-source AI-first Identity and Access Management (IAM) /AI MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD
