Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,384 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# π Telegram Multi-Part File Streamer
|
| 2 |
|
| 3 |
-
A high-performance file upload and streaming service that uses Telegram as a backend storage system. Capable of handling files up to **1TB** with zero-disk buffering
|
| 4 |
|
| 5 |
## β¨ Features
|
| 6 |
|
| 7 |
-
- **π― Zero-Disk Buffering**: Direct streaming from HTTP to Telegram
|
| 8 |
- **π¦ Auto-Splitting**: Automatically splits large files into 2GB parts
|
| 9 |
-
- **β‘ Multi-Session Load Balancing**:
|
| 10 |
-
- **π‘
|
| 11 |
-
- **π Parallel
|
| 12 |
-
- **πΎ Low Memory
|
| 13 |
-
- **π‘οΈ Production Ready**: Comprehensive error handling, retry logic, and logging
|
| 14 |
-
|
| 15 |
-
## ποΈ Architecture
|
| 16 |
-
|
| 17 |
-
```
|
| 18 |
-
βββββββββββββββ
|
| 19 |
-
β Client β
|
| 20 |
-
β (Browser/ β
|
| 21 |
-
β IDM) β
|
| 22 |
-
ββββββββ¬βββββββ
|
| 23 |
-
β
|
| 24 |
-
β HTTP Stream
|
| 25 |
-
β
|
| 26 |
-
ββββββββΌβββββββββββββββββββββββββββββ
|
| 27 |
-
β FastAPI Server β
|
| 28 |
-
β βββββββββββββββββββββββββββββββ β
|
| 29 |
-
β β /upload (POST) β β
|
| 30 |
-
β β - Stream from HTTP β β
|
| 31 |
-
β β - Auto-split into parts β β
|
| 32 |
-
β β - Upload to Telegram β β
|
| 33 |
-
β βββββββββββββββββββββββββββββββ β
|
| 34 |
-
β βββββββββββββββββββββββββββββββ β
|
| 35 |
-
β β /dl/{id} (GET) β β
|
| 36 |
-
β β - Multi-part concatenation β β
|
| 37 |
-
β β - Range request support β β
|
| 38 |
-
β β - Session load balancing β β
|
| 39 |
-
β βββββββββββββββββββββββββββββββ β
|
| 40 |
-
ββββββββ¬βββββββββββββββββββββββββββββ
|
| 41 |
-
β
|
| 42 |
-
ββββββββΊ Telegram Session 1
|
| 43 |
-
ββββββββΊ Telegram Session 2
|
| 44 |
-
ββββββββΊ Telegram Session N
|
| 45 |
-
(Load Balanced)
|
| 46 |
-
|
| 47 |
-
β
|
| 48 |
-
ββββββββΌβββββββ
|
| 49 |
-
β MongoDB β
|
| 50 |
-
β (Metadata) β
|
| 51 |
-
βββββββββββββββ
|
| 52 |
-
```
|
| 53 |
-
|
| 54 |
-
## π Requirements
|
| 55 |
-
|
| 56 |
-
- Python 3.10+
|
| 57 |
-
- MongoDB (local or Atlas)
|
| 58 |
-
- Telegram API credentials
|
| 59 |
-
- At least 512MB RAM
|
| 60 |
-
|
| 61 |
-
## π Quick Start
|
| 62 |
-
|
| 63 |
-
### 1. Clone and Setup
|
| 64 |
-
|
| 65 |
-
```bash
|
| 66 |
-
git clone <repository>
|
| 67 |
-
cd telegram-streamer
|
| 68 |
-
pip install -r requirements.txt
|
| 69 |
-
```
|
| 70 |
-
|
| 71 |
-
### 2. Configure Environment
|
| 72 |
-
|
| 73 |
-
```bash
|
| 74 |
-
cp .env.template .env
|
| 75 |
-
# Edit .env with your credentials
|
| 76 |
-
```
|
| 77 |
-
|
| 78 |
-
Required environment variables:
|
| 79 |
-
- `API_ID`: Your Telegram API ID
|
| 80 |
-
- `API_HASH`: Your Telegram API Hash
|
| 81 |
-
- `BOT_TOKEN`: Telegram bot token
|
| 82 |
-
- `MONGO_URI`: MongoDB connection string
|
| 83 |
-
- `SESSION_STRINGS`: (Optional) Comma-separated Pyrogram session strings
|
| 84 |
-
|
| 85 |
-
### 3. Generate Session Strings (Optional but Recommended)
|
| 86 |
-
|
| 87 |
-
For multi-session load balancing:
|
| 88 |
-
|
| 89 |
-
```bash
|
| 90 |
-
python -c "from pyrogram import Client; \
|
| 91 |
-
client = Client('my_session', api_id=YOUR_API_ID, api_hash='YOUR_API_HASH'); \
|
| 92 |
-
client.start(); \
|
| 93 |
-
print(client.export_session_string())"
|
| 94 |
-
```
|
| 95 |
|
| 96 |
-
|
| 97 |
|
| 98 |
-
|
| 99 |
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
-
#
|
| 105 |
-
uvicorn main:app --host 0.0.0.0 --port 8000 --workers 1
|
| 106 |
-
```
|
| 107 |
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
|
|
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
|
| 118 |
## π‘ API Endpoints
|
| 119 |
|
| 120 |
### Upload File
|
| 121 |
-
|
| 122 |
-
**POST** `/upload?filename=myfile.zip`
|
| 123 |
-
|
| 124 |
-
Upload a file with zero-disk buffering:
|
| 125 |
-
|
| 126 |
```bash
|
| 127 |
-
|
| 128 |
-
-H "Content-Type: application/octet-stream" \
|
| 129 |
-
--data-binary "@large_file.zip"
|
| 130 |
-
```
|
| 131 |
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
"success": true,
|
| 136 |
-
"unique_id": "a1b2c3d4e5f6g7h8",
|
| 137 |
-
"filename": "large_file.zip",
|
| 138 |
-
"total_size": 1099511627776,
|
| 139 |
-
"parts": 550,
|
| 140 |
-
"download_url": "/dl/a1b2c3d4e5f6g7h8"
|
| 141 |
-
}
|
| 142 |
```
|
| 143 |
|
| 144 |
-
###
|
| 145 |
-
|
| 146 |
-
**GET** `/dl/{unique_id}`
|
| 147 |
-
|
| 148 |
-
Stream a file with full range request support:
|
| 149 |
-
|
| 150 |
```bash
|
| 151 |
-
|
| 152 |
-
curl "http://localhost:8000/dl/a1b2c3d4e5f6g7h8" -o output.zip
|
| 153 |
|
| 154 |
-
|
| 155 |
-
curl "http://localhost:8000/dl/a1b2c3d4e5f6g7h8" \
|
| 156 |
-
-H "Range: bytes=1000000-2000000" -o partial.zip
|
| 157 |
```
|
| 158 |
|
| 159 |
### Get File Info
|
| 160 |
-
|
| 161 |
-
**GET** `/info/{unique_id}`
|
| 162 |
-
|
| 163 |
```bash
|
| 164 |
-
|
| 165 |
```
|
| 166 |
|
| 167 |
-
###
|
| 168 |
-
|
| 169 |
-
**DELETE** `/delete/{unique_id}`
|
| 170 |
-
|
| 171 |
```bash
|
| 172 |
-
|
| 173 |
-
```
|
| 174 |
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
### Upload with Python
|
| 178 |
-
|
| 179 |
-
```python
|
| 180 |
-
import requests
|
| 181 |
-
|
| 182 |
-
url = "http://localhost:8000/upload"
|
| 183 |
-
params = {"filename": "large_dataset.tar.gz"}
|
| 184 |
-
|
| 185 |
-
with open("large_dataset.tar.gz", "rb") as f:
|
| 186 |
-
response = requests.post(url, params=params, data=f, stream=True)
|
| 187 |
-
|
| 188 |
-
print(response.json())
|
| 189 |
```
|
| 190 |
|
| 191 |
-
##
|
| 192 |
-
|
| 193 |
-
```python
|
| 194 |
-
import requests
|
| 195 |
-
|
| 196 |
-
unique_id = "a1b2c3d4e5f6g7h8"
|
| 197 |
-
url = f"http://localhost:8000/dl/{unique_id}"
|
| 198 |
-
|
| 199 |
-
with requests.get(url, stream=True) as r:
|
| 200 |
-
r.raise_for_status()
|
| 201 |
-
with open("output.zip", "wb") as f:
|
| 202 |
-
for chunk in r.iter_content(chunk_size=8192):
|
| 203 |
-
f.write(chunk)
|
| 204 |
-
```
|
| 205 |
-
|
| 206 |
-
### Range Request Example
|
| 207 |
-
|
| 208 |
-
```python
|
| 209 |
-
import requests
|
| 210 |
-
|
| 211 |
-
unique_id = "a1b2c3d4e5f6g7h8"
|
| 212 |
-
url = f"http://localhost:8000/dl/{unique_id}"
|
| 213 |
-
|
| 214 |
-
# Download only bytes 1MB to 10MB
|
| 215 |
-
headers = {"Range": "bytes=1048576-10485760"}
|
| 216 |
-
response = requests.get(url, headers=headers)
|
| 217 |
-
|
| 218 |
-
with open("partial.bin", "wb") as f:
|
| 219 |
-
f.write(response.content)
|
| 220 |
-
```
|
| 221 |
-
|
| 222 |
-
## π§ Configuration
|
| 223 |
-
|
| 224 |
-
### Environment Variables
|
| 225 |
-
|
| 226 |
-
| Variable | Description | Required | Default |
|
| 227 |
-
|----------|-------------|----------|---------|
|
| 228 |
-
| `API_ID` | Telegram API ID | β
| - |
|
| 229 |
-
| `API_HASH` | Telegram API Hash | β
| - |
|
| 230 |
-
| `BOT_TOKEN` | Telegram Bot Token | β
| - |
|
| 231 |
-
| `MONGO_URI` | MongoDB connection string | β
| - |
|
| 232 |
-
| `MONGO_DATABASE` | Database name | β | telegram_streamer |
|
| 233 |
-
| `SESSION_STRINGS` | Comma-separated session strings | β | (uses bot only) |
|
| 234 |
-
| `LOG_LEVEL` | Logging level | β | INFO |
|
| 235 |
-
|
| 236 |
-
### Performance Tuning
|
| 237 |
-
|
| 238 |
-
**For Maximum Upload Speed:**
|
| 239 |
-
- Add multiple session strings to `SESSION_STRINGS`
|
| 240 |
-
- Each session can handle ~10-15 MB/s upload speed
|
| 241 |
-
- 5 sessions = ~50-75 MB/s combined
|
| 242 |
-
|
| 243 |
-
**For Maximum Download Speed:**
|
| 244 |
-
- Session rotation automatically balances load
|
| 245 |
-
- Supports unlimited parallel connections
|
| 246 |
-
- Compatible with IDM, aria2c, axel
|
| 247 |
-
|
| 248 |
-
**Memory Optimization:**
|
| 249 |
-
- Default chunk size: 1MB (adjustable via `CHUNK_SIZE`)
|
| 250 |
-
- RAM usage stays constant regardless of file size
|
| 251 |
-
- Recommended: 512MB RAM minimum
|
| 252 |
-
|
| 253 |
-
## π Performance Benchmarks
|
| 254 |
|
| 255 |
| Metric | Value |
|
| 256 |
|--------|-------|
|
| 257 |
| Max File Size | 1TB+ |
|
| 258 |
| Upload Speed | 10-15 MB/s per session |
|
| 259 |
-
| Download Speed | 50-100 MB/s
|
| 260 |
-
| RAM Usage | <512MB
|
| 261 |
-
| Concurrent Uploads | Limited by sessions |
|
| 262 |
-
| Concurrent Downloads | Unlimited |
|
| 263 |
-
|
| 264 |
-
## π Troubleshooting
|
| 265 |
|
| 266 |
-
##
|
| 267 |
-
|
| 268 |
-
If you encounter `FloodWait` errors:
|
| 269 |
-
1. Add more session strings to `SESSION_STRINGS`
|
| 270 |
-
2. Session rotation will automatically handle flood waits
|
| 271 |
-
3. Consider adding delays between uploads
|
| 272 |
-
|
| 273 |
-
### MongoDB Connection Issues
|
| 274 |
-
|
| 275 |
-
```bash
|
| 276 |
-
# Test MongoDB connection
|
| 277 |
-
mongosh "YOUR_MONGO_URI"
|
| 278 |
-
|
| 279 |
-
# Check if MongoDB is running (local)
|
| 280 |
-
sudo systemctl status mongod
|
| 281 |
-
```
|
| 282 |
|
| 283 |
-
|
|
|
|
|
|
|
|
|
|
| 284 |
|
| 285 |
-
|
| 286 |
-
2. Ensure session strings are valid
|
| 287 |
-
3. Check Telegram API availability
|
| 288 |
-
|
| 289 |
-
## π Deployment
|
| 290 |
-
|
| 291 |
-
### Hugging Face Spaces
|
| 292 |
-
|
| 293 |
-
1. Create a new Space (Docker type)
|
| 294 |
-
2. Add Secrets in Space Settings:
|
| 295 |
-
- `API_ID`
|
| 296 |
-
- `API_HASH`
|
| 297 |
-
- `BOT_TOKEN`
|
| 298 |
-
- `MONGO_URI`
|
| 299 |
-
- `SESSION_STRINGS`
|
| 300 |
-
3. Push code to Space repository
|
| 301 |
-
4. App will auto-deploy
|
| 302 |
-
|
| 303 |
-
### Railway/Render
|
| 304 |
-
|
| 305 |
-
1. Connect GitHub repository
|
| 306 |
-
2. Add environment variables
|
| 307 |
-
3. Deploy (automatically detects Dockerfile)
|
| 308 |
-
|
| 309 |
-
### VPS/Dedicated Server
|
| 310 |
-
|
| 311 |
-
```bash
|
| 312 |
-
# Using systemd
|
| 313 |
-
sudo nano /etc/systemd/system/telegram-streamer.service
|
| 314 |
-
|
| 315 |
-
[Unit]
|
| 316 |
-
Description=Telegram Multi-Part File Streamer
|
| 317 |
-
After=network.target
|
| 318 |
-
|
| 319 |
-
[Service]
|
| 320 |
-
Type=simple
|
| 321 |
-
User=www-data
|
| 322 |
-
WorkingDirectory=/opt/telegram-streamer
|
| 323 |
-
EnvironmentFile=/opt/telegram-streamer/.env
|
| 324 |
-
ExecStart=/usr/bin/uvicorn main:app --host 0.0.0.0 --port 8000
|
| 325 |
-
Restart=always
|
| 326 |
-
|
| 327 |
-
[Install]
|
| 328 |
-
WantedBy=multi-user.target
|
| 329 |
-
|
| 330 |
-
# Enable and start
|
| 331 |
-
sudo systemctl enable telegram-streamer
|
| 332 |
-
sudo systemctl start telegram-streamer
|
| 333 |
-
```
|
| 334 |
-
|
| 335 |
-
## π Monitoring
|
| 336 |
-
|
| 337 |
-
Check application health:
|
| 338 |
-
|
| 339 |
-
```bash
|
| 340 |
-
curl http://localhost:8000/health
|
| 341 |
-
```
|
| 342 |
-
|
| 343 |
-
Response:
|
| 344 |
-
```json
|
| 345 |
-
{
|
| 346 |
-
"status": "healthy",
|
| 347 |
-
"sessions": 5,
|
| 348 |
-
"database": "connected"
|
| 349 |
-
}
|
| 350 |
-
```
|
| 351 |
-
|
| 352 |
-
## π Security Considerations
|
| 353 |
-
|
| 354 |
-
1. **Access Control**: Add authentication middleware for production
|
| 355 |
-
2. **Rate Limiting**: Implement rate limits on upload/download endpoints
|
| 356 |
-
3. **Input Validation**: Validate filenames and parameters
|
| 357 |
-
4. **HTTPS**: Always use HTTPS in production
|
| 358 |
-
5. **Session Security**: Keep session strings private
|
| 359 |
-
|
| 360 |
-
## π License
|
| 361 |
-
|
| 362 |
-
MIT License - See LICENSE file for details
|
| 363 |
-
|
| 364 |
-
## π€ Contributing
|
| 365 |
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
3. Submit a pull request
|
| 370 |
|
| 371 |
-
|
|
|
|
|
|
|
| 372 |
|
| 373 |
-
|
| 374 |
-
-
|
| 375 |
|
| 376 |
-
##
|
| 377 |
|
| 378 |
-
|
| 379 |
-
- Powered by [FastAPI](https://fastapi.tiangolo.com/)
|
| 380 |
-
- Storage: [MongoDB](https://www.mongodb.com/)
|
| 381 |
|
| 382 |
---
|
| 383 |
|
| 384 |
-
**
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Telegram File Streamer
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: docker
|
| 7 |
+
pinned: false
|
| 8 |
+
license: mit
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
# π Telegram Multi-Part File Streamer
|
| 12 |
|
| 13 |
+
A high-performance file upload and streaming service that uses Telegram as a backend storage system. Capable of handling files up to **1TB** with zero-disk buffering.
|
| 14 |
|
| 15 |
## β¨ Features
|
| 16 |
|
| 17 |
+
- **π― Zero-Disk Buffering**: Direct streaming from HTTP to Telegram
|
| 18 |
- **π¦ Auto-Splitting**: Automatically splits large files into 2GB parts
|
| 19 |
+
- **β‘ Multi-Session Load Balancing**: Maximum bandwidth with session rotation
|
| 20 |
+
- **π‘ Range Request Support**: HTTP 206 for seeking in large files
|
| 21 |
+
- **π Parallel Downloads**: IDM and multi-threaded downloader compatible
|
| 22 |
+
- **πΎ Low Memory**: Optimized for <512MB RAM usage
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
## π§ Required Secrets
|
| 25 |
|
| 26 |
+
This Space requires the following environment variables (add in Settings β Repository secrets):
|
| 27 |
|
| 28 |
+
| Variable | Description | Example |
|
| 29 |
+
|----------|-------------|---------|
|
| 30 |
+
| `API_ID` | Telegram API ID | `12345678` |
|
| 31 |
+
| `API_HASH` | Telegram API Hash | `abc123def456...` |
|
| 32 |
+
| `BOT_TOKEN` | Bot Token from @BotFather | `1234567890:ABC...` |
|
| 33 |
+
| `MONGO_URI` | MongoDB connection string | `mongodb+srv://...` |
|
| 34 |
+
| `SESSION_STRINGS` | Session strings (optional) | `BQAB...,BQAC...` |
|
| 35 |
|
| 36 |
+
### How to Get Credentials:
|
|
|
|
|
|
|
| 37 |
|
| 38 |
+
**Telegram API (API_ID & API_HASH):**
|
| 39 |
+
1. Visit https://my.telegram.org/apps
|
| 40 |
+
2. Login and create application
|
| 41 |
+
3. Copy api_id and api_hash
|
| 42 |
|
| 43 |
+
**Bot Token:**
|
| 44 |
+
1. Search @BotFather on Telegram
|
| 45 |
+
2. Send `/newbot` command
|
| 46 |
+
3. Copy bot token
|
| 47 |
|
| 48 |
+
**MongoDB:**
|
| 49 |
+
- Free: MongoDB Atlas (https://www.mongodb.com/cloud/atlas)
|
| 50 |
+
- Create cluster β Get connection string
|
| 51 |
|
| 52 |
## π‘ API Endpoints
|
| 53 |
|
| 54 |
### Upload File
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
```bash
|
| 56 |
+
POST /upload?filename=myfile.zip
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
+
curl -X POST "https://YOUR-SPACE.hf.space/upload?filename=file.zip" \
|
| 59 |
+
-H "Content-Type: application/octet-stream" \
|
| 60 |
+
--data-binary "@file.zip"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
```
|
| 62 |
|
| 63 |
+
### Download File
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
```bash
|
| 65 |
+
GET /dl/{unique_id}
|
|
|
|
| 66 |
|
| 67 |
+
curl "https://YOUR-SPACE.hf.space/dl/{unique_id}" -o output.zip
|
|
|
|
|
|
|
| 68 |
```
|
| 69 |
|
| 70 |
### Get File Info
|
|
|
|
|
|
|
|
|
|
| 71 |
```bash
|
| 72 |
+
GET /info/{unique_id}
|
| 73 |
```
|
| 74 |
|
| 75 |
+
### Health Check
|
|
|
|
|
|
|
|
|
|
| 76 |
```bash
|
| 77 |
+
GET /health
|
|
|
|
| 78 |
|
| 79 |
+
curl "https://YOUR-SPACE.hf.space/health"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
```
|
| 81 |
|
| 82 |
+
## π Performance
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
| Metric | Value |
|
| 85 |
|--------|-------|
|
| 86 |
| Max File Size | 1TB+ |
|
| 87 |
| Upload Speed | 10-15 MB/s per session |
|
| 88 |
+
| Download Speed | 50-100 MB/s |
|
| 89 |
+
| RAM Usage | <512MB constant |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
+
## β οΈ Important
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
+
- Ensure Telegram TOS compliance
|
| 94 |
+
- Files stored in your Telegram account
|
| 95 |
+
- Add multiple SESSION_STRINGS for better performance
|
| 96 |
+
- MongoDB IP whitelist: 0.0.0.0/0
|
| 97 |
|
| 98 |
+
## π Troubleshooting
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
|
| 100 |
+
**Build Failed:**
|
| 101 |
+
- Check all secrets are set correctly
|
| 102 |
+
- Verify MongoDB URI is valid
|
|
|
|
| 103 |
|
| 104 |
+
**FloodWait Errors:**
|
| 105 |
+
- Add more SESSION_STRINGS
|
| 106 |
+
- Use user sessions instead of bot only
|
| 107 |
|
| 108 |
+
**Out of Memory:**
|
| 109 |
+
- Upgrade Space hardware in Settings
|
| 110 |
|
| 111 |
+
## π License
|
| 112 |
|
| 113 |
+
MIT License
|
|
|
|
|
|
|
| 114 |
|
| 115 |
---
|
| 116 |
|
| 117 |
+
**Made with β€οΈ for the community**
|
| 118 |
+
|
| 119 |
+
*Disclaimer: Use responsibly and comply with Telegram's Terms of Service.*
|