Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,3 @@
|
|
| 1 |
-
#!/usr/bin/env python3
|
| 2 |
-
"""
|
| 3 |
-
Telegram ↔ Hugging Face Dataset Storage Bot
|
| 4 |
-
-------------------------------------------
|
| 5 |
-
- AES‑SIV deterministic encryption for per‑user folders and filenames.
|
| 6 |
-
- Full support for all media types, albums, message links, instant uploads, CRUD.
|
| 7 |
-
- Real‑time progress updates for Telegram transfers (shows filename, exact size, percentage, speed, ETA).
|
| 8 |
-
- Duplicate detection with skip / keep duplicate options.
|
| 9 |
-
- File splitting for Telegram sends (>1.9 GB) and 45 GB max single file upload limit.
|
| 10 |
-
- FIFO upload queue with automatic disk space checks.
|
| 11 |
-
- Automatic disk space guard, keep‑alive pings, and system status reporting.
|
| 12 |
-
- Built on Pyrogram + tgcrypto for maximum speed.
|
| 13 |
-
"""
|
| 14 |
-
|
| 15 |
import os, re, sys, time, base64, hashlib, shutil, logging, secrets, sqlite3, tempfile, threading, asyncio
|
| 16 |
from pathlib import Path
|
| 17 |
from typing import Optional, List, Tuple, Union
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os, re, sys, time, base64, hashlib, shutil, logging, secrets, sqlite3, tempfile, threading, asyncio
|
| 2 |
from pathlib import Path
|
| 3 |
from typing import Optional, List, Tuple, Union
|