Update app.py
Browse files
app.py
CHANGED
|
@@ -134,7 +134,7 @@ async def process(state):
|
|
| 134 |
|
| 135 |
print(f"Downloading msg {msg.id} — {msg.document.file_name} ({msg.document.file_size:,} bytes)")
|
| 136 |
|
| 137 |
-
for attempt in range(
|
| 138 |
try:
|
| 139 |
zip_bytes = io.BytesIO()
|
| 140 |
async for chunk in app.stream_media(msg):
|
|
|
|
| 134 |
|
| 135 |
print(f"Downloading msg {msg.id} — {msg.document.file_name} ({msg.document.file_size:,} bytes)")
|
| 136 |
|
| 137 |
+
for attempt in range(10):
|
| 138 |
try:
|
| 139 |
zip_bytes = io.BytesIO()
|
| 140 |
async for chunk in app.stream_media(msg):
|