File size: 1,687 Bytes
bd894b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# 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