Skip to content

The agent that grows with you

docs(qqbot): clarify comment on file upload guard

Zioywishingfef1b8cbbe4e
diff --git a/gateway/platforms/qqbot/adapter.py b/gateway/platforms/qqbot/adapter.py
index 0cab4bb794e..0260ac93791 100644
--- a/gateway/platforms/qqbot/adapter.py
+++ b/gateway/platforms/qqbot/adapter.py
@@ -1812,8 +1812,9 @@ class QQAdapter(BasePlatformAdapter):
fn = filename.strip().lower()
if ct == "voice" or ct.startswith("audio/"):
return True
- # QQ file uploads have content_type="file" — never treat as voice,
- # even if the filename has an audio extension.
+ # QQ file uploads have content_type="file". Without this guard,
+ # any uploaded audio file (e.g. .wav, .mp3) would be misrouted into
+ # the STT pipeline and never be received as a normal file attachment.
if ct == "file":
return False
_VOICE_EXTENSIONS = (