Download FileStream/bot/__init__.py from AZLABS/telegbot: direct link, hf CLI and curl.
- Browser
- Download file 523 Bytes
-
https://huggingface.co/spaces/AZLABS/telegbot/resolve/main/FileStream/bot/__init__.py
- Command line
-
hf download hf://spaces/AZLABS/telegbot/FileStream/bot/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/AZLABS/telegbot/resolve/main/FileStream/bot/__init__.py
523 Bytes
| from ..config import Telegram | |
| from pyrogram import Client | |
| if Telegram.SECONDARY: | |
| plugins=None | |
| no_updates=True | |
| else: | |
| plugins={"root": "FileStream/bot/plugins"} | |
| no_updates=None | |
| FileStream = Client( | |
| name="FileStream", | |
| api_id=Telegram.API_ID, | |
| api_hash=Telegram.API_HASH, | |
| workdir="FileStream", | |
| plugins=plugins, | |
| bot_token=Telegram.BOT_TOKEN, | |
| sleep_threshold=Telegram.SLEEP_THRESHOLD, | |
| workers=Telegram.WORKERS, | |
| no_updates=no_updates | |
| ) | |
| multi_clients = {} | |
| work_loads = {} | |