forked from X-Gorn/MangaLoader
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit fd8070d
Showing
13 changed files
with
1,500 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
worker: python3 bot.py |
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,38 @@ | ||
## MangaLoader (Bot) | ||
--- | ||
|
||
Telegram RoBot to Upload manga/comic. | ||
|
||
#### Features: | ||
|
||
👉 Uploading from [supported resources](https://manga-py.com/manga-py/#resources-list) as PDF/ZIP/Folder (each chapter) | Uploaded as Zipfile | ||
|
||
#### How to use?! | ||
|
||
* Send manga url from [supported resources](https://manga-py.com/manga-py/#resources-list), for url example [read this](#url-options-and-examples) | ||
* Select subdirs option | ||
* Wait a few minutes and the bot will send your manga | ||
|
||
#### URL options and examples | ||
|
||
```https://komikid.com/manga/updater -s 5``` - will skip 5 chapters and start from chapter 6-end | ||
|
||
```https://komikid.com/manga/updater -c 5``` - will start from chapter 1-5 | ||
|
||
```https://komikid.com/manga/updater -s 5 -c 5``` - ```-s 5``` will skip 5 chapters and ```-c 5``` will start from chapter 6-10 | ||
|
||
for more help, [read this](https://github.com/manga-py/manga-py#downloading-manga) | ||
|
||
## Telegram Support: | ||
|
||
[](https://t.me/xTeamBots) | ||
[](https://t.me/xTeamChats) | ||
|
||
## Credits, and Thanks to: | ||
|
||
* [Dan Tès](https://t.me/haskell) for his [Pyrogram Library](https://github.com/pyrogram/pyrogram) | ||
* [Jacob Ilias Komissar (@jirassimok)](https://github.com/jirassimok) for his [dir2pdf Tool](https://github.com/jirassimok/dir2pdf) | ||
* [Sergey Zharkov (@1271)](https://github.com/1271) for his [Manga-py Tool](https://github.com/manga-py/manga-py) | ||
|
||
#### LICENSE | ||
- GPLv3 |
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,43 @@ | ||
{ | ||
"name": "MangaLoader", | ||
"description": "Telegram Bot to Upload Manga/Comic URLs to Telegram as PDF/ZIP or Folder.", | ||
"keywords": [ | ||
"telegram", | ||
"best", | ||
"manga", | ||
"downloader" | ||
], | ||
"success_url": "https://github.com/X-Gorn/MangaLoader", | ||
"website": "https://github.com/X-Gorn", | ||
"repository": "https://github.com/X-Gorn/MangaLoader", | ||
"env": { | ||
"BOT_TOKEN": { | ||
"description": "Your bot token, as a string.", | ||
"value": "" | ||
}, | ||
"APP_ID": { | ||
"description": "Get this value from https://my.telegram.org", | ||
"value": "" | ||
}, | ||
"API_HASH": { | ||
"description": "Get this value from https://my.telegram.org", | ||
"value": "" | ||
}, | ||
"OWNER_ID": { | ||
"description": "Your telegram id, not username. Open https://t.me/MissRose_bot and send /id to bot", | ||
"value": "" | ||
} | ||
}, | ||
"addons": [ | ||
], | ||
"buildpacks": [{ | ||
"url": "heroku/python" | ||
}], | ||
"stack": "heroku-20", | ||
"formation": { | ||
"worker": { | ||
"quantity": 1, | ||
"size": "free" | ||
} | ||
} | ||
} |
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,13 @@ | ||
from pyrogram import Client | ||
from config import Config | ||
|
||
|
||
xbot = Client( | ||
"MangaLoader", | ||
api_id=Config.APP_ID, | ||
api_hash=Config.API_HASH, | ||
bot_token=Config.BOT_TOKEN, | ||
plugins=dict(root="plugins"), | ||
) | ||
|
||
xbot.run() |
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,7 @@ | ||
import os | ||
|
||
class Config(object): | ||
APP_ID = int(os.environ['APP_ID']) | ||
API_HASH = os.environ['API_HASH'] | ||
BOT_TOKEN = os.environ['BOT_TOKEN'] | ||
OWNER_ID = int(os.environ['OWNER_ID']) |
Oops, something went wrong.