Skip to content

Latest commit

 

History

History
27 lines (25 loc) · 983 Bytes

README.md

File metadata and controls

27 lines (25 loc) · 983 Bytes

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