Cxops commited on
Commit
877dbd5
·
verified ·
1 Parent(s): df08edc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -1,3 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@@ -295,7 +309,7 @@ async def do_upload_job(
295
  last_update = [0]
296
  download_start = time.time()
297
  total_size = expected_size if expected_size and expected_size > 0 else 0
298
- Upload images, audio, and videos by dragging in the text input, pasting, or clicking here.
299
  async def download_progress(current, total):
300
  nonlocal total_size
301
  now = time.time()
 
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
 
309
  last_update = [0]
310
  download_start = time.time()
311
  total_size = expected_size if expected_size and expected_size > 0 else 0
312
+
313
  async def download_progress(current, total):
314
  nonlocal total_size
315
  now = time.time()