File size: 1,341 Bytes
907a98e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# ==============================================================================
# Telegram MTProto Media Streaming & Direct Downloader Engine
# Bypass 20MB Bot API Limit - HTTP 206 Range Streaming Up to 2GB
# ==============================================================================

# Server Environment
PORT=3000
NODE_ENV=production

# Public Base URL of your deployed application (e.g. Render.com URL or Custom Domain)
# Example: https://telegram-video-streamer.onrender.com
APP_URL=http://localhost:3000

# Telegram MTProto Credentials (Obtain from https://my.telegram.org -> API development tools)
# Required for 2GB MTProto direct file streaming
API_ID=
API_HASH=

# Telegram Bot Token (Obtain from @BotFather on Telegram)
BOT_TOKEN=123456789:ABCdefGHIjklMNOpqrSTUvwxYZ

# Telegram Admin ID (Your numerical Telegram user ID from @userinfobot)
# Only this admin ID is authorized to upload files via the bot
ADMIN_ID=123456789

# MongoDB Atlas Connection String (Mongoose stream_files collection)
# Example: mongodb+srv://<dbuser>:<dbpassword>@cluster0.mongodb.net/telegram_streamer?retryWrites=true&w=majority
MONGODB_URI=

# Firebase Realtime Database URL (Optional Media Catalog)
FIREBASE_DATABASE_URL=https://jetmax-f3e8e-default-rtdb.firebaseio.com

# Optional TMDB API Key (v3 auth key for metadata auto-fetch)
TMDB_API_KEY=