Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lsnnt authored Mar 13, 2024
1 parent 6d7e766 commit b3998ae
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
This project dedicated to a telegram bot which can download magnet links and upload it to a server.
# Running the bot
- Clone and cd to repo using
1) Clone and cd to repo using
```
git clone https://github.com/lsnnt/tgmagnet && cd tgmagnet
```
- To run the bot first replace the token in file `__main__.py` with telegram bot token generated by botfather.
- located here
2) To run the bot first replace the token in file `__main__.py` with telegram bot token generated by botfather.
https://github.com/lsnnt/tgmagnet/blob/a85746f5c5a55f3d11190c96f020941f442187be/__main__.py#L66
- Then install the necessary dependency using
3) Then install the necessary dependency using
```
pip3 install -r requirements.txt
```
- Then run the bot using
4) Then run the bot using
```
python3 __main__.py
```
Ctrl+C to exit
If you want to run the bot in background
python3 __main__.py &
```
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.
Expand Down

0 comments on commit b3998ae

Please sign in to comment.