fix: 修复戳一戳消息报错

This commit is contained in:
Soulter
2025-02-09 13:57:33 +08:00
parent 6bcd10cd5c
commit e8d99f0460

View File

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