soxogvv commited on
Commit
001e9a8
·
verified ·
1 Parent(s): d735fb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- return await asyncio.sleep(5)
651
  return await attempt(send_link, depth + 1)
652
  if "We are experiencing high" in text:
653
- return await asyncio.sleep(3600)
 
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.")