Spaces:
Sleeping
Sleeping
Download test-clone/fsb.sample.env from codebydante/BrodyFileStreamBot: direct link, hf CLI and curl.
- Browser
- Download file 1.69 kB
-
https://huggingface.co/spaces/codebydante/BrodyFileStreamBot/resolve/bd894b382ed6a42e3879e3846027d7e6d427f3f2/test-clone/fsb.sample.env
- Command line
-
hf download hf://spaces/codebydante/BrodyFileStreamBot@bd894b382ed6a42e3879e3846027d7e6d427f3f2/test-clone/fsb.sample.env
-
curl -L -o fsb.sample.env https://huggingface.co/spaces/codebydante/BrodyFileStreamBot/resolve/bd894b382ed6a42e3879e3846027d7e6d427f3f2/test-clone/fsb.sample.env
1.69 kB
| # Required Variables (DO NOT SKIP THESE) | |
| API_ID= | |
| API_HASH= | |
| BOT_TOKEN= | |
| LOG_CHANNEL= | |
| # Optional Variables | |
| DEV=false | |
| PORT=8080 | |
| # The length of the hash in your URLs | |
| # https://domain.tld/1254?hash=asd45a | |
| # ^^^^^^ | |
| # / | |
| # This is the hash | |
| HASH_LENGTH=6 | |
| # you can use IP address | |
| # HOST=http://<ip address>:<PORT> | |
| # Or you can also use a domain name | |
| # HOST=https://example.com | |
| # Use public IP while auto-generating HOST (not recommended unless needed) | |
| USE_PUBLIC_IP=false | |
| # Reuse worker sessions from files (faster startup) | |
| USE_SESSION_FILE=true | |
| # Optional user session string for userbot features | |
| # USER_SESSION= | |
| # Optional allowlist of Telegram user IDs (comma-separated) | |
| # ALLOWED_USERS=12345,67890 | |
| # Stream performance tuning | |
| # STREAM_CONCURRENCY = parallel Telegram chunk downloads per stream request | |
| # STREAM_BUFFER_COUNT = how many chunks to keep ready in memory | |
| # STREAM_TIMEOUT_SEC = per-chunk timeout (seconds) | |
| # STREAM_MAX_RETRIES = retries per failed chunk | |
| # | |
| # Good default: | |
| # STREAM_CONCURRENCY=4 | |
| # STREAM_BUFFER_COUNT=8 | |
| # STREAM_TIMEOUT_SEC=30 | |
| # STREAM_MAX_RETRIES=3 | |
| STREAM_CONCURRENCY=4 | |
| STREAM_BUFFER_COUNT=8 | |
| STREAM_TIMEOUT_SEC=30 | |
| STREAM_MAX_RETRIES=3 | |
| # For muti token support | |
| # Refer https://github.com/EverythingSuckz/TG-FileStreamBot/tree/golang#use-multiple-bots-to-speed-up | |
| # MULTI_TOKEN1=1857821156:AAEvrINCsduhjkjhahadvHRdk7oF46KZnc | |
| # MULTI_TOKEN2=1355359001:AAF4dgddVVxDCt51FZqy1unh9h0SOTw0gU | |
| # MULTI_TOKEN3=6941936497:AAGJzfoMHXshS8gVcsefUzpwyrbfU7gKRMM | |
| # MULTI_TOKEN4=6546079247:AAF2k3uvO9Hqadfhjaskjds8jnzOAfQYUzTZ |