mirror of
https://github.com/tgbot-collection/ytdlbot.git
synced 2024-09-20 06:55:55 +08:00
use fork of pyrogram
This commit is contained in:
parent
a86e0736c7
commit
fe628adbf9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue