diff --git a/README.md b/README.md
index 311a25e..d5e5981 100644
--- a/README.md
+++ b/README.md
@@ -15,10 +15,12 @@
> RyuzakiLib is used to help your account activities on Telegram
We are not responsible for what you misuse in this repository!
Be careful when using this repository!
If one of the members misuses this repository, we are forced to ban you
Never ever abuse this repository
# Installing
-* `pip3 install -U RyuzakiLib`
+- example: `RyuzakiLib[porno]`, `RyuzakiLib[standard]`, `RyuzakiLib[all]`
+
+* `pip3 install -U RyuzakiLib[all]`
* windows or linux
```
-pip3 install git+https://github.com/TeamKillerX/RyuzakiLib
+pip3 install git+https://github.com/TeamKillerX/RyuzakiLib.git#egg=RyuzakiLib[all]
```
* Only Developed by
diff --git a/RyuzakiLib/__version__.py b/RyuzakiLib/__version__.py
index f9e47b6..92857f8 100644
--- a/RyuzakiLib/__version__.py
+++ b/RyuzakiLib/__version__.py
@@ -1 +1 @@
-__version__ = "1.3.4"
+__version__ = "1.3.5"
diff --git a/RyuzakiLib/hackertools/alldownloader.py b/RyuzakiLib/hackertools/alldownloader.py
index 3d67069..4f9be6d 100644
--- a/RyuzakiLib/hackertools/alldownloader.py
+++ b/RyuzakiLib/hackertools/alldownloader.py
@@ -5,7 +5,6 @@
import httpx
import requests
import wget
-from fastapi import HTTPException
class DictToObj:
@@ -25,40 +24,12 @@ class AkenoPlus:
def __init__(
self,
key: str = None,
- api_endpoint: str = "https://private-akeno.randydev.my.id",
- issue: bool = False,
- ip_unban=None
+ api_endpoint: str = "https://private-akeno.randydev.my.id"
):
- self.issue = issue
+
self.api_endpoint = api_endpoint
self.headers = {"x-akeno-key": key}
- if isinstance(ip_unban, str):
- self.ip_unban = [ip_unban]
- elif isinstance(ip_unban, list):
- self.ip_unban = ip_unban
- else:
- self.ip_unban = []
-
- async def all_blacklist(self):
- async with httpx.AsyncClient() as client:
- try:
- response = await client.get(f"{self.api_endpoint}/blacklist/list-ip/", headers=self.headers)
- response.raise_for_status()
- return response.json()["blacklisted_ips"]
- except httpx.HTTPStatusError:
- return []
- except Exception:
- return []
-
- async def call_next(self, request, call_next):
- banned_ips = await self.all_blacklist()
- client_ip = request.headers.get("X-Real-IP") or request.client.host
- if self.issue and client_ip in banned_ips and client_ip not in self.ip_unban:
- raise HTTPException(status_code=403, detail="Your IP is banned.")
- response = await call_next(request)
- return response
-
async def download_now(self, data):
return wget.download(data)
diff --git a/setup.py b/setup.py
index c786a30..2a3afb9 100644
--- a/setup.py
+++ b/setup.py
@@ -41,9 +41,11 @@ def read(fname, version=False):
"aiohttp",
"wget",
"requests",
+ "httpx[http2]",
],
"standard": [
"g4f",
+ "httpx[http2]",
"typing",
"aiohttp",
"bs4",
@@ -53,6 +55,11 @@ def read(fname, version=False):
"motor",
"typing-extensions",
"huggingface-hub>=0.23.2",
+ "authlib",
+ "gpytranslate",
+ "fastapi[all]",
+ "uvicorn[standard]",
+ "pyrogram",
],
"all": [
"aiohttp",