Files
SnowLuma/packages
DrSmoothl 547640bbfd fix(onebot): route oversized videos to the file path up front (#145)
A video larger than MAX_VIDEO_SIZE (~100 MB, QQ's video-resource cap)
uploads "successfully" — the server accepts the Highway bytes — but the
receiver sees 视频已过期 because no valid video resource is ever produced.

The existing large-video → file fallback only fired from the send catch
block, i.e. when the upload threw. An oversized upload doesn't throw, so
the fallback never triggered. Add a proactive split before the send: any
video whose source size is known to exceed MAX_VIDEO_SIZE is re-routed to
the file pipeline up front (mirrored for private and group sends). Smaller
videos (verified up to ~49 MB) are unaffected and still send as videos.

This pairs with the c2c-file fix (f8caa92): the re-routed video now rides
the now-working offline-file path and downloads correctly.
2026-06-30 01:24:00 +08:00
..
2026-06-28 22:48:00 +08:00
2026-06-28 22:48:00 +08:00
2026-06-28 22:48:00 +08:00
2026-06-28 22:48:00 +08:00
2026-06-28 22:48:00 +08:00
2026-06-28 22:48:00 +08:00
2026-06-28 22:48:00 +08:00
2026-06-28 22:48:00 +08:00