-
Notifications
You must be signed in to change notification settings - Fork 986
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make it compatible for Heroku ==> OS
- Loading branch information
Showing
23 changed files
with
879 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
worker: python3 bot.py | ||
worker: python3 -m tobrot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Telegram Torrent Leecher 🔥🤖 | ||
|
||
A Telegram Torrent (and youtube-dl) Leecher based on [Pyrogram](https://github.com/pyrogram/pyrogram) | ||
|
||
## installing | ||
|
||
#### The Easy Way | ||
|
||
[](https://heroku.com/deploy) | ||
|
||
#### The Legacy Way | ||
Simply clone the repository and run the main file: | ||
|
||
```sh | ||
git clone https://github.com/SpEcHiDe/PyroGramUserBot.git | ||
cd PyroGramUserBot | ||
virtualenv -p /usr/bin/python3 venv | ||
. ./venv/bin/activate | ||
pip install -r requirements.txt | ||
# <Create config.py appropriately> | ||
python3 -m tobrot | ||
``` | ||
|
||
## Credits, and Thanks to | ||
|
||
* [Dan Tès](https://telegram.dog/haskell) for his [Pyrogram Library](https://github.com/pyrogram/pyrogram) | ||
* [Robots](https://telegram.dog/Robots) for their @UploadBot | ||
* @AjeeshNair for his torrent.ajee.sh | ||
* @gotstc, @aryanvikash, @HasibulKabir for their TORRENT groups | ||
* [](https://telegra.ph/file/fab1017e21c42a5c1e613.mp4 "CopyLeft Credit Video") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"name": "Telegram Torrent Leecher", | ||
"description": "A Telegram Torrent (and youtube-dl) Leecher based on Pyrogram. Powered by @ThankTelegram!", | ||
"keywords": [ | ||
"telegram", | ||
"best", | ||
"indian", | ||
"pyrogram", | ||
"torrent", | ||
"3", | ||
"plugin", | ||
"modular", | ||
"productivity", | ||
"youtube-dl", | ||
"leecher" | ||
], | ||
"repository": "https://github.com/SpEcHiDe/PublicLeech", | ||
"success_url": "https://telegram.dog/ThankTelegram", | ||
"website": "https://github.com/SpEcHiDe/PublicLeech", | ||
"env": { | ||
"ENV": { | ||
"description": "Setting this to ANYTHING will enable webhooks when in env mode", | ||
"value": "ANYTHING" | ||
}, | ||
"APP_ID": { | ||
"description": "Get this value from https://my.telegram.org", | ||
"value": "" | ||
}, | ||
"API_HASH": { | ||
"description": "Get this value from https://my.telegram.org", | ||
"value": "" | ||
}, | ||
"TG_BOT_TOKEN": { | ||
"description": "get this value from @BotFather", | ||
"value": "" | ||
}, | ||
"AUTH_CHANNEL": { | ||
"description": "should be an integer. The BOT API ID of the Telegram Group, where the Leecher should work.", | ||
"value": "" | ||
}, | ||
"CHUNK_SIZE": { | ||
"description": "should be an integer", | ||
"value": "128", | ||
"required": false | ||
}, | ||
"ARIA_TWO_STARTED_PORT": { | ||
"description": "should be an integer. The port on which aria2c daemon must start, and keep listening.", | ||
"value": "6800", | ||
"required": false | ||
}, | ||
"EDIT_SLEEP_TIME_OUT": { | ||
"description": "should be an integer. Number of seconds to wait before editing a message.", | ||
"value": "1", | ||
"required": false | ||
}, | ||
"MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START": { | ||
"description": "should be an integer. Number of seconds to wait before cancelling a torrent.", | ||
"required": false | ||
} | ||
}, | ||
"addons": [ | ||
], | ||
"buildpacks": [{ | ||
"url": "https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest" | ||
}, { | ||
"url": "https://github.com/amivin/aria2-heroku" | ||
}, { | ||
"url": "heroku/python" | ||
}], | ||
"formation": { | ||
"worker": { | ||
"quantity": 1, | ||
"size": "free" | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# (c) Shrimadhav U K | ||
|
||
import os | ||
|
||
# the secret configuration specific things | ||
if bool(os.environ.get("ENV", False)): | ||
from pyrobot.sample_config import Config | ||
else: | ||
from pyrobot.config import Development as Config | ||
|
||
|
||
# TODO: is there a better way? | ||
TG_BOT_TOKEN = Config.TG_BOT_TOKEN | ||
APP_ID = Config.APP_ID | ||
API_HASH = Config.API_HASH | ||
AUTH_CHANNEL = Config.AUTH_CHANNEL | ||
DOWNLOAD_LOCATION = Config.DOWNLOAD_LOCATION | ||
MAX_FILE_SIZE = Config.MAX_FILE_SIZE | ||
TG_MAX_FILE_SIZE = Config.TG_MAX_FILE_SIZE | ||
FREE_USER_MAX_FILE_SIZE = Config.FREE_USER_MAX_FILE_SIZE | ||
CHUNK_SIZE = Config.CHUNK_SIZE | ||
DEF_THUMB_NAIL_VID_S = Config.DEF_THUMB_NAIL_VID_S | ||
MAX_MESSAGE_LENGTH = Config.MAX_MESSAGE_LENGTH | ||
PROCESS_MAX_TIMEOUT = Config.PROCESS_MAX_TIMEOUT | ||
ARIA_TWO_STARTED_PORT = Config.ARIA_TWO_STARTED_PORT | ||
EDIT_SLEEP_TIME_OUT = Config.EDIT_SLEEP_TIME_OUT | ||
MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START = Config.MAX_TIME_TO_WAIT_FOR_TORRENTS_TO_START | ||
MAX_TG_SPLIT_FILE_SIZE = Config.MAX_TG_SPLIT_FILE_SIZE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.