**The first step**
00. Today I am going to show you how to make a Google Drive Mirror bot
01 Github Account
02 Google Account
03 Telegram Account
04 Heroku Account
05 Python
06 Notepad++
**The second step**
Go TO:- https://github.com/anasty17/mirror-leech-telegram-bot
01. Download the GitHub repository folder to your computer.
02. Create a separate folder.
03. Extract the repository file inside it.
**Third step**
Go to https://console.developers.google.com/apis/credentials
Enter your email password and log in to your account.
01. Then create a new project.
02. Then click the OAuth consent screen button.
03. Then enter the name and email and create the app.
04. Now click on the Credentials button again and go to the Credentials menu
05. Now click on the CREATE CREDENTIALS button and click on the OAuth client ID menu to create an ID.
06. Then download the JSON file created with the OAuth client ID
07. Then copy the JSON file to the repository file on your computer and rename it as credentials.json.
08. Then create another folder inside the repository file and rename the folder as mirror bot credentials.
09. Give it a name of your choice instead of the mirror bot.
10. Then copy the credentials.json file into the mirror bot credentials.
**Step Four**
01. Now go to https://console.cloud.google.com/apis/library
02. Search for the Google Drive API and then enable the Google Drive API
03. Then go back and search for the Identity and Access Management (IAM) API and enable the Identity and Access Management (IAM) API
** Fifth Step **
01. Go to the website that provides Python software and install Python software on your computer.
02. When installing Python software make sure to install it as shown in the video, or all the next steps may be flawed.
03. Now take the Windows command prompt and type in the name of "Python" and it will say that Python is installed correctly.
04. Now we are going to install the Python file inside the repository file via the command prompt.
04. Enter the code "curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py" via the command prompt
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
05. Then enter the python "python get-pip.py" code
python get-pip.py
06. Then enter the "pip -V" code to see if it's installed properly
pip -V
**Step Six Generate Token pickle**
01. Now paste the Credential JSON file inside the Mirrorbot Credentials file into the Mtb Repository folder
02.Now enter the "pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib" code
pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib
03. Now enter the command "python3 generate_drive_token.py". If that does not work then enter this code "python generate_drive_token.py"
python3 generate_drive_token.py
or
python generate_drive_token.py
04. Now copy the code below and copy it to the browser and go to the email and get the token number.
05. Generate the token. pickle file into the Mtb repository file and then save it in the bot credential file.
**Seventh step**
01. Now Generate a Service Account Token Pickle and a Service Account Folder
02. Now enter the "python -m pip install progress" code
python -m pip install progress
03.Now enter "python3 gen_sa_accounts.py --quick-setup 1 --new-only"
python3 gen_sa_accounts.py --quick-setup 1 --new-only
04. That code does not work
05. If that code does not work, enter the code "python gen_sa_accounts.py --quick-setup 1 --new-only"
python gen_sa_accounts.py --quick-setup 1 --new-only
06. Now copy the following code again paste it in the browser and copy the token of the email below.
07. Now copy the service account token pick file and the service account folder to bot credentials.
**Eighth step**
01. Add Service Account to ShareDrive or TeamDrive
02. Open the Power Shell Command Prompt through the Accounts folder
03. Now enter the code
$ emails = Get-ChildItem. \ **. Json | Get-Content -Raw | ConvertFrom-Json | Select -ExpandProperty client_email >> emails.txt
04. Download Notepad ++ and install it on your computer.
05. Now go to "https://groups.google.com/" and create a Google Group.
https://groups.google.com/
06. Now open the email.txt file via Notepad ++ and copy all the emails.
07. Copy all the emails in the email.txt file, paste the group members and click on Add Members.
08. Now open Google Drive and create a shared drive.
09. Now add the newly created Google Group to this drive.
10. Alternative command.If you are using a TeamDrive add all the service accounts via this command "python3 add_to_team_drive.py -d YourSharedDriveID"
python3 add_to_team_drive.py -d YourSharedDriveID
11. Then delete the emails.txt file from the account file
**Ninth step**
01. Go to "https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index" and create an index
https://gitlab.com/ParveenBhadooOfficial/Google-Drive-Index
02."https://bdi-generator.hashhackers.com/" Go to Index here
https://bdi-generator.hashhackers.com/
03. If this link does not work, use the other link below:
https://temporary.ve.workers.dev/
04.Log into your email with the Google Sign In button.
05. Now go to "http://dash.cloudflare.com/". If you do not already have an account, create one.
06. Now create an index worker.
07. Delete the code and paste the Bhadoo index code there.
08. Now open a command prompt through the Account folder.
09. Enter this code in the command prompt and combine all the Jason files.
copy 0.json + 1.json + 2.json + 3.json + 4.json + 5.json + 6.json + 7.json + 8.json + 9.json + 10.json + 11.json + 12.json + 13.json + 14.json + 15.json + 16.json + 17.json + 18.json + 19.json + 20.json + 21.json + 22.json + 23.json + 24.json + 25.json + 26.json + 27.json + 28.json + 29.json + 30.json + 31.json + 32.json + 33.json + 34.json + 35.json + 36.json + 37.json + 38.json + 39.json + 40.json + 41.json + 42.json + 43.json + 44.json + 45.json + 46.json + 47.json + 48.json + 49.json + 50.json + 51.json + 52.json + 53.json + 54.json + 55.json + 56.json + 57.json + 58.json + 59.json + 60.json + 61.json + 62.json + 63.json + 64.json + 65.json + 66.json + 67.json + 68.json + 69.json + 70.json + 71.json + 72.json + 73.json + 74.json + 75.json + 76.json + 77.json + 78.json + 79.json + 80.json + 81.json + 82.json + 83.json + 84.json + 85.json + 86.json + 87.json + 88.json + 89.json + 90.json + 91.json + 92.json + 93.json + 94.json + 95.json + 96.json + 97.json + 98.json + 99.json combined.txt
10. Now open the Combine file via Notepad ++ replace all these symbols to "}" this code "},"
11.
Put a comma after the symbol } and then enter a space
12. Delete the "sub" word Delete the comma in the last sign "}" and copy everything
13. Now remove the copied code from with this {} mark on the index site and paste it there
14. Now save the Index URL in a notepad.
**Step ten**
01. Create a private repo now using
https://github.com/anasty17/mirror-leech-telegram-bot repo
02. Create GitHub Secrets settings
HEROKU_EMAIL (The email in your Heroku account)
HEROKU_API_KEY (The API key in your Heroku account)
HEROKU_APP_NAME (The name of the Mirror Bot in your Heroku account)
CONFIG_FILE_URL ( fill it)
03. Open the web address http://gist.github.com/
04. Go to
https://github.com/anasty17/mirror-leech-telegram-bot/blob/master/config_sample.env
and copy all the settings there
05. Copy this information to your convig.env gist
06.# Remove this line before deploying
_____REMOVE_THIS_LINE_____=True
07.BOT_TOKEN = "Enter the token code of your telegram bot"
08. Go to @botfather create a boat and enter the bot token location
09. Copy the folder id in Google Share Drive and enter
10. Use "@Userinfobot" to retrieve the Owner id and enter the Owner id location
11. Go to My Telegram and give your app id and hash number to those places
12. Enter your group's chat id in the Authorized Chat id location
13. Provide your ShareDrive Index link
14. If you have a mega drive account, enter it here.
15. You can put your group link and web link on these buttons.
16. Now create an account folder and create a file.txt file there
17. Now create an account folder and create a file.txt file there
18. Upload JSON files 1 to 99 .. Skip Email and Combine files. I forgot to delete them
19. Delete the file.txt file from the repository file
20. Now upload the credential file and the token pickle file and the token pickle a file to the repository file.
21. Now add your bot to the group and deploy the app to Heroku
22.Bot Command
mirror - Mirror
zipmirror - Mirror and upload as zip
unzipmirror - Mirror and extract files
qbmirror - Mirror torrent using qBittorrent
qbzipmirror - Mirror torrent and upload as zip using qb
qbunzipmirror - Mirror torrent and extract files using qb
leech - Leech
zipleech - Leech and upload as zip
unzipleech - Leech and extract files
qbleech - Leech torrent using qBittorrent
qbzipleech - Leech torrent and upload as zip using qb
qbunzipleech - Leech torrent and extract using qb
clone - Copy file/folder to Drive
count - Count file/folder of Drive
watch - Mirror yt-dlp supported link
zipwatch - Mirror yt-dlp supported link as zip
leechwatch - Leech through yt-dlp supported link
leechzipwatch - Leech yt-dlp support link as zip
leechset - Leech settings
setthumb - Set thumbnail
status - Get Mirror Status message
rsslist - List all subscribed rss feed info
rssget - Get specific No. of links from specific rss feed
rsssub - Subscribe new rss feed
rssunsub - Unsubscribe rss feed by title
rssunsuball - Remove all rss feed subscriptions
list - Search files in Drive
search - Search for torrents with API
cancel - Cancel a task
cancelall - Cancel all tasks
del - Delete file/folder from Drive
log - Get the Bot Log
shell - Run commands in Shell
restart - Restart the Bot
stats - Bot Usage Stats
ping - Ping the Bot
help - All cmds with description
0 Comments