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):