From e8d99f046015e50d8e878a2d29e1f15749131036 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 9 Feb 2025 13:57:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=88=B3=E4=B8=80?= =?UTF-8?q?=E6=88=B3=E6=B6=88=E6=81=AF=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/message/components.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/astrbot/core/message/components.py b/astrbot/core/message/components.py index 45fa82901..4a992d0b6 100644 --- a/astrbot/core/message/components.py +++ b/astrbot/core/message/components.py @@ -325,11 +325,13 @@ class RedBag(BaseMessageComponent): class Poke(BaseMessageComponent): - type: ComponentType = "Poke" - qq: int + type: str = "" + id: T.Optional[int] = 0 + qq: T.Optional[int] = 0 - def __init__(self, **_): - super().__init__(**_) + def __init__(self, type: str, **_): + type = f"Poke:{type}" + super().__init__(type=type, **_) class Forward(BaseMessageComponent):