From fcc2f6a19562f8a63840bb318ad440a8693e7f28 Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Wed, 17 Sep 2025 17:12:39 +0800 Subject: [PATCH] fix: bad message chain init in command --- pkg/pipeline/process/handlers/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/pipeline/process/handlers/command.py b/pkg/pipeline/process/handlers/command.py index d3a46d6c..1d1454b9 100644 --- a/pkg/pipeline/process/handlers/command.py +++ b/pkg/pipeline/process/handlers/command.py @@ -60,7 +60,9 @@ class CommandHandler(handler.MessageHandler): else: if event_ctx.event.alter is not None: - query.message_chain = platform_message.MessageChain([platform_message.Plain(event_ctx.event.alter)]) + query.message_chain = platform_message.MessageChain( + [platform_message.Plain(text=event_ctx.event.alter)] + ) session = await self.ap.sess_mgr.get_session(query)