use fork of pyrogram

This commit is contained in:
Benny 2024-04-09 17:59:42 +02:00
parent a86e0736c7
commit fe628adbf9
No known key found for this signature in database
GPG key ID: 6CD0DBDA5235D481
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
pyrogram==2.0.106
git+https://github.com/KurimuzonAkuma/pyrogram
tgcrypto==1.2.5
yt-dlp==2024.03.10
APScheduler==3.10.4

View file

@ -9,7 +9,7 @@ __author__ = "Benny <benny.think@gmail.com>"
from pyrogram import Client
from config import APP_HASH, APP_ID, PYRO_WORKERS, TOKEN, WORKERS, IPv6
from config import APP_HASH, APP_ID, PYRO_WORKERS, TOKEN, IPv6
def create_app(name: str, workers: int = PYRO_WORKERS) -> Client:
@ -20,6 +20,6 @@ def create_app(name: str, workers: int = PYRO_WORKERS) -> Client:
bot_token=TOKEN,
workers=workers,
ipv6=IPv6,
max_concurrent_transmissions=max(1, WORKERS // 2),
# max_concurrent_transmissions=max(1, WORKERS // 2),
# https://github.com/pyrogram/pyrogram/issues/1225#issuecomment-1446595489
)