weebzone
junk
6f85dc9
Raw History Blame
630 Bytes
from pyrogram import Client
from Backend.config import Telegram
StreamBot = Client(
name='bot',
api_id=Telegram.API_ID,
api_hash=Telegram.API_HASH,
bot_token=Telegram.BOT_TOKEN,
plugins={"root": "Backend/pyrofork/plugins"},
sleep_threshold=20,
workers=6,
max_concurrent_transmissions=10
)
Helper = Client(
"helper",
api_id=Telegram.API_ID,
api_hash=Telegram.API_HASH,
bot_token=Telegram.HELPER_BOT_TOKEN,
sleep_threshold=20,
workers=6,
max_concurrent_transmissions=10
)
multi_clients = {}
work_loads = {}
client_dc_map = {}
client_failures = {}
client_avg_mbps = {}