Skip to content

fix: serialize nested messages in OneBot v11 forward nodes - #75

Open
SAY-5 wants to merge 2 commits into
noneplugin:mainfrom
SAY-5:fix-forward-serialize
Open

fix: serialize nested messages in OneBot v11 forward nodes#75
SAY-5 wants to merge 2 commits into
noneplugin:mainfrom
SAY-5:fix-forward-serialize

Conversation

@SAY-5

@SAY-5 SAY-5 commented Jul 27, 2026

Copy link
Copy Markdown

Fixes #74. A node_custom segment carries a nested Message in seg.data['content'], and the default seg.__dict__ serialization leaves those MessageSegment objects as-is, so the CalledAPI hook fails at the sqlalchemy json serializer when recording a sent forward message. The v11 Serializer now converts nested Message values in segment data recursively; added a test that records a forward message end to end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OneBot v11 Bot发送的合并转发消息无法序列化

1 participant