Skip to content

lsnnt/tgmagnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 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

To get Telegram bot token generate a bot from @BotFather on Telegram

tgmagnet/main.py

Lines 9 to 10 in 581d0cf

path = "YOUR_PATH_HERE"
token = "YOUR_TELEGRAM_BOT_TOKEN HERE"
os.system(f"rm -rf <ENTER PATH HERE>")
4) 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

nohup 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