Skip to content

Oihalitz/RealDebridTelegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real Debrid Upload (& Parser) to Telegram

A code for telegram bot do one of two things:

  • Send the direct link on a message (Use main.py)

    • direct link on a message
  • Download and upload the file to telegram (Use uploader.py)

    • upload the file to telegram

Note

The max upload size is 2GB.

But wait... there is more!

You can add hostings that aren't supported by Real Debrid
(And by that i meant mirrors of supported hostings by Real debrid)

Example: Turbobit.net is supported but not its mirrors on Real Debrid.

('turbobif.com', 'turbobit.com', 'turb.to', 'turb.pw', 'turb.cc', 'turbo.to', 'turbo.pw', 'turbo.cc', 'turbobit.net', 'trbbt.net ')

Search for

def get_premium_link(url):

And add the mirror of hostings that aren't supported by Real Debird.

As you can see in the code:

for mirror_host in ['turbobif.com', 'turbobit.com', 'turb.to', 'turb.pw', 'turb.cc', 'turbo.to', 'turbo.pw', 'turbo.cc', 'turbobit.net', 'trbbt.net']:
    url = url.replace(mirror_host, 'turbobit.net')

This allows to allow the mirrors of Turbobit to be accepted. You can add more

Just do in a new line after that:

for mirror_host in ['MIRROR LINK', 'MIRROR LINK']:
    url = url.replace(mirror_host, 'ACCEPTED LINK BY RD')

How to use?

  1. Install python

  2. Install requirements

  3. pip install -r requirements.txt
  4. If you are using docker, edit Docker file, Default is "uploader.py" but you can change it if you want to use "main.py" Also in docker file enter the Real Debrid API and Token

  5. Edit main.py and uploader.py with your Real Debrid API and Token

  6. If using Docker run them using

    sudo docker build . -t rd
    
    sudo docker run rd
    
  7. run main.py or uploader.py

  8. python main.py

    or

    python uploader.py		

HOWEVER....

  • There is no progress bar yet. So try to check logs if anything wrong happened.
  • And probably you need more requirements ><

Thanks

To Oihalitz for the base code and to Anasty17 for inspiring me.

StarMade ✨

About

Real Debrid in Telegram with controlc urls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published