This project dedicated to a telegram bot which can download magnet links and upload it to a server.
- Clone and cd to repo using
git clone https://github.com/lsnnt/tgmagnet && cd tgmagnet
- 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
To get Telegram bot token generate a bot from @BotFather on Telegram
Lines 9 to 10 in 581d0cf
Line 133 in 581d0cf
pip3 install -r requirements.txt
- Then run the bot using
python3 main.py
Ctrl+C to exit If you want to run the bot in background
nohup python3 main.py & disown
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