Skip to content
/ tgmagnet Public

A telegram bot capable of downloading torrents and convert it into url

Notifications You must be signed in to change notification settings

lsnnt/tgmagnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project dedicated to a telegram bot which can download magnet links and upload it to a server.

Running the bot

  1. Clone and cd to repo using
git clone https://github.com/lsnnt/tgmagnet && cd tgmagnet
  1. To run the bot first set the necessary variables token should be your telegram bot token and path should be where the torrents are going to be downloaded

    tgmagnet/__main__.py

    Lines 9 to 10 in 0e4c9d6

    path = "YOUR PATH HERE"
    token = "YOUR TOKEN HERE"
  2. Then install the necessary dependency using
pip3 install -r requirements.txt
  1. Then run the bot using
python3 __main__.py

Ctrl+C to exit If you want to run the bot in background

python3 __main__.py & disown

I recommend to host it on a VPS with at least 2GB RAM

This is bandwith hungry as it first downloads the torrent and upload it to the server and then provide link to access the file. However if you want to only download the file download using aria2c or transmission-cli

About

A telegram bot capable of downloading torrents and convert it into url

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages