Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Gorn authored Jul 17, 2021
0 parents commit fd8070d
Show file tree
Hide file tree
Showing 13 changed files with 1,500 additions and 0 deletions.
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
worker: python3 bot.py
38 changes: 38 additions & 0 deletions README.md
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:

[![Channel](https://img.shields.io/badge/TG-Channel-30302f?style=flat&logo=telegram)](https://t.me/xTeamBots)
[![Group](https://img.shields.io/badge/TG-Group-30302f?style=flat&logo=telegram)](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
43 changes: 43 additions & 0 deletions app.json
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"
}
}
}
13 changes: 13 additions & 0 deletions bot.py
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()
7 changes: 7 additions & 0 deletions config.py
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'])
Loading

0 comments on commit fd8070d

Please sign in to comment.