mirror of
https://github.com/anasty17/mirror-leech-telegram-bot.git
synced 2025-01-08 12:07:33 +08:00
Too much for readme
Signed-off-by: anasty17 <e.anastayyar@gmail.com>
This commit is contained in:
parent
0eea245b9e
commit
39f5e61de1
22
README.md
22
README.md
@ -124,8 +124,8 @@ Fill up rest of the fields. Meaning of each field is discussed below:
|
||||
- `MULTI_SEARCH_URL`: Check `drive_folder` setup [here](https://github.com/anasty17/mirror-leech-telegram-bot/tree/master#multi-search-ids). Write **drive_folder** file [here](https://gist.github.com/). Open the raw file of that gist, it's URL will be your required variable. Should be in this form after removing commit id: https://gist.githubusercontent.com/username/gist-id/raw/drive_folder
|
||||
- `YT_COOKIES_URL`: Youtube authentication cookies. Check setup [Here](https://github.com/ytdl-org/youtube-dl#how-do-i-pass-cookies-to-youtube-dl). Use gist raw link and remove commit id from the link, so you can edit it from gists only.
|
||||
- `NETRC_URL`: To create .netrc file contains authentication for aria2c and yt-dlp. Use gist raw link and remove commit id from the link, so you can edit it from gists only. **NOTE**: After editing .nterc you need to restart the docker or if deployed on heroku so restart dyno in case your edits related to aria2c authentication.
|
||||
- **NOTE**: All above url variables used incase you want edit them in future easily without deploying again or if you want to deploy from public fork else you can add token.pickle, accounts folder, drive_folder, .netrc and cookies.txt directly to root.
|
||||
- `DATABASE_URL`: Your Database URL. See [Generate Database](https://github.com/anasty17/mirror-leech-telegram-bot/tree/master#generate-database) to generate database (**NOTE**: If you use database you can save your Sudo ID permanently).
|
||||
- **NOTE**: All above url variables used incase you want edit them in future easily without deploying again or if you want to deploy from public fork. If deploying using cli or private fork you can leave these variables empty add token.pickle, accounts folder, drive_folder, .netrc and cookies.txt directly to root but you can't update them without rebuild OR simply leave all above variables and use private UPSTREAM_REPO.
|
||||
- `DATABASE_URL`: (NOT RECOMMENDED FOR NOW) Your Database URL. See [Generate Database](https://github.com/anasty17/mirror-leech-telegram-bot/tree/master#generate-database) to generate database (**NOTE**: If you use database you can save your Sudo ID permanently).
|
||||
- `AUTHORIZED_CHATS`: Fill user_id and chat_id (not username) of groups/users you want to authorize. Separate them with space, Examples: `-0123456789 -1122334455 6915401739`.
|
||||
- `SUDO_USERS`: Fill user_id (not username) of users whom you want to give sudo permission. Separate them with space, Examples: `0123456789 1122334455 6915401739` (**NOTE**: If you want to save Sudo ID permanently without database, you must fill your Sudo Id here).
|
||||
- `IS_TEAM_DRIVE`: Set to `False` or leave it empty to get public google drive links else `True` so only who have access to your Folder/TeamDrive can open the links. `Bool`
|
||||
@ -149,11 +149,12 @@ Fill up rest of the fields. Meaning of each field is discussed below:
|
||||
- `SERVER_PORT`: Only For VPS even if `IS_VPS` is `False`, which is the **BASE_URL_OF_BOT** Port.
|
||||
- `WEB_PINCODE`: If empty or `False` means no more pincode required while qbit web selection. `Bool`
|
||||
- `QB_SEED`: If `True` qbit torrent will be seeded after and while uploading until reaching specific ratio or time, edit `MaxRatio` or `GlobalMaxSeedingMinutes` or both from qbittorrent.conf (`-1` means no limit, but u can cancel manually by gid). **NOTE**: Don't change `MaxRatioAction`. `Bool`
|
||||
- **Qbittorrent Note**: To auto cancel dead torrents after specific time, edit these two numbers (999999) in seconds. [1st](https://github.com/anasty17/mirror-leech-telegram-bot/blob/0a8a237295b86cc7ad01291657f8127820871a8f/bot/helper/mirror_utils/download_utils/qbit_downloader.py#L144) for metadata download timeout and [2nd](https://github.com/anasty17/mirror-leech-telegram-bot/blob/0a8a237295b86cc7ad01291657f8127820871a8f/bot/helper/mirror_utils/download_utils/qbit_downloader.py#L197) for stalled downlaod timeout.
|
||||
- `TG_SPLIT_SIZE`: Size of split in bytes, leave it empty for max size `2GB`.
|
||||
- `AS_DOCUMENT`: Default Telegram file type upload. Empty or `False` means as media. `Bool`
|
||||
- `EQUAL_SPLITS`: Split files larger than **TG_SPLIT_SIZE** into equal parts size (Not working with zip cmd). `Bool`
|
||||
- `CUSTOM_FILENAME`: Add custom word to leeched file name.
|
||||
- `UPSTREAM_REPO`: Your github repository link, If your repo is private add `https://{githubtoken}@github.com/{username}/{reponame}` format. Get token from [Github settings](https://github.com/settings/tokens). **NOTE**: Any change in docker or requirements you need to deploy/build again with updated repo to take effect - DON'T delete .gitignore file.
|
||||
- `UPSTREAM_REPO`: Your github repository link, if your repo is private add `https://{githubtoken}@github.com/{username}/{reponame}` format. Get token from [Github settings](https://github.com/settings/tokens). So you can update your appllication from filled repository on each restart. **NOTE**: Any change in docker or requirements you need to deploy/build again with updated repo to take effect - DON'T delete .gitignore file.
|
||||
- `SHORTENER_API`: Fill your Shortener API key.
|
||||
- `SHORTENER`: Shortener URL.
|
||||
- Supported URL Shorteners:
|
||||
@ -181,6 +182,7 @@ Three buttons are already added including Drive Link, Index Link, and View Link,
|
||||
- Go to the OAuth Consent tab, fill it, and save.
|
||||
- Go to the Credentials tab and click Create Credentials -> OAuth Client ID
|
||||
- Choose Desktop and Create.
|
||||
- Publish your OAuth consent screen App to prevent **token.pickle** from expire
|
||||
- Use the download button to download your credentials.
|
||||
- Move that file to the root of mirrorbot, and rename it to **credentials.json**
|
||||
- Visit [Google API page](https://console.developers.google.com/apis/library)
|
||||
@ -196,18 +198,20 @@ python3 generate_drive_token.py
|
||||
|
||||
**IMPORTANT NOTES**:
|
||||
1. You must set `SERVER_PORT` variable to `80` or any other port you want to use.
|
||||
2. Use `anasty17/mltb-oracle:latest` for oracle or if u faced problem with arm64 docker run.
|
||||
- Tutorial Video for Deploying on Oracle VPS:
|
||||
- Thanks to [Wiszky](https://github.com/vishnoe115)
|
||||
<p><a href="https://youtu.be/IzUG7U7v4U4?t=968"> <img src="https://img.shields.io/badge/See%20Video-black?style=for-the-badge&logo=YouTube" width="160""/></a></p>
|
||||
3. To clear the container (this will not affect on the image):
|
||||
2. To clear the container (this will not affect on the image):
|
||||
```
|
||||
sudo docker container prune
|
||||
```
|
||||
4. To delete the images:
|
||||
3. To delete the images:
|
||||
```
|
||||
sudo docker image prune -a
|
||||
```
|
||||
4. Use `anasty17/mltb-oracle:latest` for oracle or if u faced problem with arm64 docker run.
|
||||
- Tutorial Video for Deploying on Oracle VPS:
|
||||
- Thanks to [Wiszky](https://github.com/vishnoe115)
|
||||
- No need to use sudo su, you can also use sudo before each cmd!
|
||||
<p><a href="https://youtu.be/IzUG7U7v4U4?t=968"> <img src="https://img.shields.io/badge/See%20Video-black?style=for-the-badge&logo=YouTube" width="160""/></a></p>
|
||||
|
||||
------
|
||||
|
||||
### Deploying on VPS Using Docker
|
||||
|
Loading…
Reference in New Issue
Block a user