feat(backend,frontend,mcp): any voice or round video can be transcribed on request, media is found by its bytes

This commit is contained in:
hh committed 2026-10-28 01:35:56 +00:00
1 parent c2180e80ad
commit 2dd4e589c3
17 files changed
+523 -159

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ from pyrogram import Client
from pyrogram.errors import FloodPremiumWait, FloodWait, RPCError
from userbot.modules.capture.context import CaptureContext
from userbot.modules.stt.service import transcribe_message
from userbot.modules.stt.service import TranscribeError, transcribe_message
from utils.logging import logger
@@ -20,5 +20,5 @@ async def safe_transcribe(
"transcribe",
{"chat_id": chat_id, "message_id": message_id},
)
except RPCError as exc:
except (TranscribeError, RPCError) as exc:
logger.warning(f"[yellow]STT failed for {chat_id}/{message_id}: {exc}[/]")