Telegram 镜像和抓取机器人
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
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.
root or TeamDrive ID, folder ids will be listed with non-recursive method)amd64, arm64/v8, arm/v7, s390xUPSTREAM_REPOZIP, 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
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
git clone https://github.com/arshsisodiya/helios-mirror mirrorbot/ && cd mirrorbot
sudo apt install python3 python3-pip
Install Docker by following the official Docker docs
sudo pacman -S docker python
pip3 install -r requirements-cli.txt
cp config_sample.env config.env
_____REMOVE_THIS_LINE_____=True
Fill up rest of the fields. Meaning of each field is discussed below:
1. Required Fields
BOT_TOKEN: The Telegram Bot Token that you got from @BotFather. StrGDRIVE_FOLDER_ID: This is the Folder/TeamDrive ID of the Google Drive Folder or root to which you want to upload all the mirrors. StrOWNER_ID: The Telegram User ID (not username) of the Owner of the bot. IntDOWNLOAD_DIR: The path to the local folder where the downloads should be downloaded to. StrDOWNLOAD_STATUS_UPDATE_INTERVAL: Time in seconds after which the progress/status message will be updated. Recommended 10 seconds 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 -1 to disable auto message deletion. IntAUTO_DELETE_UPLOAD_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 upload message deletion. 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. Str2. Optional Fields
BOT_PM: - set itTrue if you want to send mirror links and leeched files in user's PM, Default is False.FORCE_BOT_PM: - set it True if True all mirrored links and leeched files will be send directly in PM, Mirrored links will not get sent in Current chat and source message will be deleted immediately after mirror/leech is complete, AUTO_DELETE_UPLOAD_MESSAGE_DURATION will not apply on it.IS_TEAM_DRIVE: Set True if uploading to TeamDrive. Default is False. BoolDATABASE_URL: Your SQL Database URL. Follow this Generate Database to generate database. Data will be saved in Database: auth and sudo users, leech settings including thumbnails for each user, rss data and incomplete tasks. NOTE: If deploying on heroku and using heroku postgresql delete this variable from config.env file. DATABASE_URL will be grabbed from heroku variables. StrAUTHORIZED_CHATS: Fill user_id and chat_id of groups/users you want to authorize. Separate them by space. StrSUDO_USERS: Fill user_id of users whom you want to give sudo permission. Separate them by space. StrIGNORE_PENDING_REQUESTS: Ignore pending requests after restart. Default is False. BoolUSE_SERVICE_ACCOUNTS: Whether to use Service Accounts or not. For this to work see Using Service Accounts section below. Default is False. BoolINDEX_URL: Refer to https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index. StrSTATUS_LIMIT: Limit the no. of tasks shown in status message with buttons. NOTE: Recommended limit is 4 tasks. StrSTOP_DUPLICATE: Bot will check file in Drive, if it is present in Drive, downloading or cloning will be stopped. (NOTE: File will be checked using filename not file hash, so this feature is not perfect yet). Default is False. BoolCMD_INDEX: commands index number. This number will added at the end all commands. StrTORRENT_TIMEOUT: Timeout of dead torrents downloading with qBittorrent and Aria2c in seconds. StrEXTENSION_FILTER: File extensions that won't upload/clone. Separate them by space. StrINCOMPLETE_TASK_NOTIFIER: Get incomplete task messages after restart. Require database and (supergroup or channel). Default is False. BoolUPTOBOX_TOKEN: Uptobox token to mirror uptobox links. Get it from Uptobox Premium Account.UPSTREAM_REPO: Your github repository link, if your repo is private add https://username:{githubtoken}@github.com/{username}/{reponame} format. Get token from Github settings. So you can update your bot from filled repository on each restart. Str.UPSTREAM_BRANCH: Upstream branch for update. Default is master. StrMIRROR_LOGS: - Chat id of channels/groups where you want to store Mirror logs, NOTE Add bot in Mirror logs channel/group as Admin.LEECH_LOG: - Chat id of channel/group where leeched files will be uploaded, NOTE: only put 1 channel/group id starts with -100xxxxxxxxx, NOTE add bot in that channel/group as Admin, if you leave this empty bot will sent leech files in current chat.LEECH_SPLIT_SIZE: Size of split in bytes. Default is 2GB. Default is 4GB if your account is premium. StrAS_DOCUMENT: Default type of Telegram file upload. Default is False mean as media. BoolEQUAL_SPLITS: Split files larger than LEECH_SPLIT_SIZE into equal parts size (Not working with zip cmd). Default is False. BoolCUSTOM_FILENAME: Add custom word to leeched file name. StrUSER_SESSION_STRING: To download/upload from your telegram account. If you own premium account. To generate session string use this command python3 generate_string_session.py after mounting repo folder for sure. Str. NOTE: You can't use bot with private message. Use it with supergroup or channel.TITLE_NAME: Title name for Telegraph pages (while using /list command)AUTHOR_NAME: = Author name for Telegraph pagesAUTHOR_URL: = Author URL for Telegraph pageCRYPT: Cookie for gdtot google drive link generator. Follow these [steps](https://github.com/arshsisodiya/helios-mirror/tree暂无开放 Issues,或尚未同步最近议题。