tg-stream / WebStreamer /bot /__init__.py
vickydmt's picture
Upload WebStreamer/bot/__init__.py with huggingface_hub
f030d77 verified
raw
history blame contribute delete
613 Bytes
# This file is a part of TG-FileStreamBot
from pyrogram import Client
from ..vars import Var
if Var.SECONDARY:
PLUGINS=None
NO_UPDATES=True
else:
PLUGINS={"root": "WebStreamer.bot.plugins"}
NO_UPDATES=None
StreamBot = Client(
name="WebStreamer",
api_id=Var.API_ID,
api_hash=Var.API_HASH,
workdir="WebStreamer",
plugins=PLUGINS,
bot_token=Var.BOT_TOKEN,
sleep_threshold=Var.SLEEP_THRESHOLD,
workers=Var.WORKERS,
no_updates=NO_UPDATES
)
print(f"Debug: StreamBot initialized with plugins: {PLUGINS} / {StreamBot.plugins}")
multi_clients = {}
work_loads = {}