GithubHelp home page GithubHelp logo

mega-to-gdrive-bot's Introduction

Mega.nz to GDrive uploader

With this telegram bot you can download files/folders from mega.nz and upload those files/folders to GDrive. You can even upload telegram uploaded files to mega.nz or GDrive. This TG bot is heroku based. Now before you continue i recommend you to read Prerequisites section and What this bot can do? section.

Can it download files over 5GiB?

  • Yes it can download. But for downloading files over 5GiB you have to wait for 5-6 hours or 10-12 hours after transfer quota exceeds. After completing 5-6 hours it will automatically download that file and after completing download it will ask you for uploading that file on GDrive. See proofs here:-
screenshot 1 screenshot 2
photo_2021-10-20_15-46-43 photo_2021-10-20_15-46-51

Prerequisites:-

ℹ️ Important information.
  1. Create account on GitHub (if you haven't).
  2. Create account on mega.nz (if you haven't).
  3. Create account on Heroku (if you haven't).
  4. Create account on Telegram (if you haven't).
  5. Create account on Gmail (if you haven't for only this script).
  6. Go to my.telegram.org/auth, login and create app. Check how to create app on telegram. Now save api_id and api_hash which you got from my.telegram.org/auth.
  7. Create a telegram bot by using Bot Father. Check how to create bot in telegram. Bot Father will give you bot token save that token.
  8. Create Google Drive API key from your above created gmail account. Read this article's Getting Your API Key and Saving Your Credentials section for getting two file named client_secrets.json and mycreds.txt.
  9. Search @chatid_echo_bot in telegram (This bot is not mine. You can google how to get chat id in telegram.) and click start this will give you your telegram user_id.
  10. So now you have saved six things:-
    • api_id
    • api_hash
    • bot_token
    • client_secrets.json
    • mycreds.txt
    • telegram user_id

How to use?

Steps to use.

Step 1:

  • Just git clone this repository.

    git clone https://github.com/whitehatjrchintu/mega-to-gdrive-bot.git

    cd mega-to-gdrive-bot

  • Or download this repository as zip.

Step 2:

  • After cd or unzip upload client_secrets.json and mycreds.txt files, which we download in step 8 of Prerequisites, in that folder.

Step 3:

  • Now create repository (i will recommend to create private repository.) in your github account and upload all files and folders.

Step 4:

  • Copy your github repository's link and paste after ?template= in this link https://www.heroku.com/deploy/?template=. Like this:-

    https://www.heroku.com/deploy/?template=https://github.com/whitehatjrchintu/mega-to-gdrive-bot

Step 5:

  • Now enter App name in app_name and api_id, api_hash, bot_token, mega.nz email, mega.nz password and your telegram user_id which you saved in above steps, in respective asked field. Then click Deploy app.

Step 6:

  • Finally go to your bot, click start button, send #login command and this will login into mega.nz.

What this bot can do?

Full Details
where to upload mega.nz file? mega.nz folder uploaded to telegram as zip file
photo_2021-10-20_15-46-43 photo_2021-10-20_15-46-51
  • You can upload telegram uploaded files to mega.nz. Just forward the telegram upload file to the bot.

  • You can upload telegram uploaded files to GDrive. Just forward the telegram upload file to the bot.

    where to upload telegram uploaded file?
  • You can import other mega.nz files and folders to your account. Use #import https://mega.nz/the_other_file_url command.

Please note spaces are sensitive here so use double quotes if your file have spaces in its name. Example:-

correct ✓ wrong ✗
#rm "my video.mp4" #rm my video.mp4
#other mv "my video with spaces.mp4" my_video_without_spaces.mp4 #other mv my video with spaces.mp4 my_video_without_spaces.mp4
List of commands
commands mean
#login for login into mega.nz
#ls list files that are in your mega.nz account.
#import mega.nz url directly import another mega.nz file to your account. no download no upload for mega to mega.
#get file_name download your own mega.nz file and will ask you where to upload that file.
#rm file_name remove file from your mega.nz account.
#other mega commands execute other mega.nz commands with the help of this command. mean operate your mega.nz account on telegram
url of mega.co.nz or mega.nz this will download file from mega.nz automatically and will ask you where to upload that file. this will also download folder from mega.nz,then zip that folder and will ask you where to upload that zip file.

If you found any mistake or have any suggestion let me know i will correct/apply that.

Meant for educational purpose only. I am not responsible if mega or telegram block your account.

mega-to-gdrive-bot's People

Contributors

whitehatjrchintu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mega-to-gdrive-bot's Issues

Little Confusion

hi;
first of all thanks a ton for this repo, its really helpful as i was looking for the one.
But i have a little confusion here:

My main concern is to copy/upload from (business) mega to my td so can i copy/upload huge files/folders without any limit (or as business limit)?
and what will be the upload speed? will it be the same as heroku?

MEGA TO DRIVE TRANSFER BOT

LINK

https://github.com/cheems/Mega-to-Google-Drive

Hi brother, I'm writing to give you an idea..

there is a way to transfer a drive directly without downloading the mega nz link..

if you study the script I threw at you, it is possible

all you have to do is adapt this script to the telegram bot and add premium account support..

google drive to google drive clone looks like fire transfer is fast

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.