SkillAgentSearch skills...

Eunhamirror

Aria,Qbittorent & Leech Telegram Mirror Bot

Install / Use

/learn @vincreator/Eunhamirror

README

Betterme

Eunha Mirror

GitHub Repo stars GitHub forks GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub contributors GitHub repo size GitHub commit activity GitHub Channel

This is a Telegram Bot written in Python for mirroring files on the Internet to your Google Drive or Telegram. Based on python-aria-mirror-bot

Features:

Feature supported:

<details> <summary><b>Click Here For More Details</b></summary>

In each single file there is a major change from base code, it's almost totaly 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

Leech

  • Leech support
  • Splitting
  • Thumbnail 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

Google

  • Stop duplicates for all tasks except yt-dlp tasks
  • Download from Google Drive
  • Counting Google Drive files/folders
  • Search in multiple Drive folder/TeamDrive
  • Recursive Search (only with root or TeamDrive ID, folder ids will be listed with non-recursive method). Based on Sreeraj searchX-bot.
  • Use Token.pickle if file not found with Service Account, for all Gdrive functions
  • Random Service Account for each task

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 video quality for each user
  • Fix download progress

Database

  • Mongo Database support
  • Store bot settings
  • Store user settings including thumbnails in database
  • Store private files
  • Store RSS last recorded data
  • Store incomplete task notifier to get incomplete task messages after restart

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
  • Filter added and all functions have been improved

IMDB

  • Search on IMDB with search engine and search engine parameters

Overall

  • Docker image support for linux amd64, arm64/v8, arm/v7, s390x
  • Edit variables and overwrite the private files while bot running
  • Update bot at startup and with restart command using UPSTREAM_REPO
  • Improve Telegraph. Based on Sreeraj loaderX-bot
  • 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
  • View Link button. Extra button to open index link in broswer instead of direct download for file
  • Queueing System
  • Ability to zip/unzip multi links in same directory. Mostly helpful in unziping tg file parts
  • Almost all repository functions have been improved and many other details can't mention all of them
  • Many bugs have been fixed

</details>

From Base and other Repositories

<details> <summary><b>Click Here For More Details</b></summary>
  • 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, letsupload.io, hxfile.co, anonfiles.com, bayfiles.com, antfiles, fembed.com, fembed.net, femax20.com, layarkacaxxi.icu, fcdn.stream, sbplay.org, naniplay.com, naniplay.nanime.in, naniplay.nanime.biz, sbembed.com, streamtape.com, streamsb.net, feurl.com, upload.ee, pixeldrain.com, racaty.net, 1fichier.com, 1drv.ms (Only works for file not folder or business account), uptobox.com and solidfiles.com, terabox.com


</details>

How to deploy?

Prerequisites

<details> <summary><b>Click Here For More Details</b></summary>
  • Tutorial Video from A to Z:
<p><a href="https://youtu.be/IUmq1paCiHI"> <img src="https://img.shields.io/badge/See%20Video-black?style=for-the-badge&logo=YouTube" width="160""/></a></p>

1. Installing requirements

  • Clone this repo:
git clone https://github.com/vincreator/eunhamirror EunhaMirror/ && cd EunhaMirror
  • 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. Str
  • OWNER_ID: The Telegram User ID (not username) of the Owner of the bot. Int
  • TELEGRAM_API: This is to authenticate your Telegram account for downloading Telegram files. You can get this from https://my.telegram.org. Int
  • TELEGRAM_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

  • GDRIVE_ID: This is the Folder/TeamDrive ID of the Google Drive Folder or root to which you want to upload all the mirrors. Required for Google Drive upload. Str
  • IS_TEAM_DRIVE: Set True if uploading to TeamDrive. Default is False. Bool
  • DOWNLOAD_DIR: The path to the local folder where the downloads should be downloaded to. Str
  • STATUS_UPDATE_INTERVAL: Time in seconds after which the progress/status message will be updated. Recommended 10 seconds at least. Int
  • AUTO_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 -1 to disable auto message deletion. Int
  • 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). Str
  • AUTHORIZED_CHATS: Fill user_id and chat_id of groups/users you want to authorize. Separate them by space. Int
  • SUDO_USERS: Fill user_id of users whom you want to give sudo permission. Separate them by space. Int
  • IGNORE_PENDING_REQUESTS: Ignore pending requests after restart. Default is False. Bool
  • USE_SERVICE_ACCOUNTS: Whether to use Service Accounts or not. For this to work see Using Service Accounts section below. Default is False. Bool
  • INDEX_URL: Refer to https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index. Str
  • STATUS_LIMIT: Limit the no. of tasks shown in status message with buttons. NOTE: R
View on GitHub
GitHub Stars173
CategoryDevelopment
Updated15d ago
Forks294

Languages

Python

Security Score

100/100

Audited on Mar 7, 2026

No findings