Files
SnowLuma/packages
DrSmoothl 9dfa31bdbc fix(onebot): allow negative message_id in get_{group,friend}_msg_history
message_id is a signed int32 hash (hashMessageIdInt32) and is frequently
NEGATIVE, but both history actions declared it as `f.int({min:0}).default(0)`
— so a real anchor like message_id=-497311472 was rejected at param
validation (retcode 1400, 0ms) before run() fired, and the server-side
history fetch never happened (the client then reports "未找到足够的群聊记录").

Drop the min:0 bound → `f.int().default(0)`: negatives pass, absent/present-0
still mean "fetch latest", count stays ≥0. Matches every other action, which
uses f.messageId() for signed message IDs.

Regression tests: negative group/friend anchors now reach the handler;
absent message_id still defaults to 0.
2026-06-14 23:45:59 +08:00
..
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00
2026-06-14 16:28:39 +08:00