Update app.py
Browse files
app.py
CHANGED
|
@@ -647,10 +647,11 @@ async def send_to_bot_and_get_video(link: str) -> Tuple[Optional[str], Optional[
|
|
| 647 |
# ❌ Case 3: Ad or error
|
| 648 |
if "Request failed" in text:
|
| 649 |
logger.warning("🔁 Bot said request failed, retrying once…")
|
| 650 |
-
|
| 651 |
return await attempt(send_link, depth + 1)
|
| 652 |
if "We are experiencing high" in text:
|
| 653 |
-
|
|
|
|
| 654 |
|
| 655 |
if "http" in text and (msg.photo or text.count(" ") > 0):
|
| 656 |
logger.info("❌ Detected ad/promo. Ignored.")
|
|
|
|
| 647 |
# ❌ Case 3: Ad or error
|
| 648 |
if "Request failed" in text:
|
| 649 |
logger.warning("🔁 Bot said request failed, retrying once…")
|
| 650 |
+
await asyncio.sleep(5)
|
| 651 |
return await attempt(send_link, depth + 1)
|
| 652 |
if "We are experiencing high" in text:
|
| 653 |
+
await asyncio.sleep(3600)
|
| 654 |
+
return await attempt(send_link, depth + 1)
|
| 655 |
|
| 656 |
if "http" in text and (msg.photo or text.count(" ") > 0):
|
| 657 |
logger.info("❌ Detected ad/promo. Ignored.")
|