🐛 Fix cqhttp Message null parameter

This commit is contained in:
Artin
2021-01-04 22:24:43 +08:00
parent 2218fa2b33
commit 877fa1a75a

View File

@ -222,7 +222,7 @@ class Message(BaseMessage):
for seg in msg:
yield MessageSegment(seg["type"], seg.get("data") or {})
return
elif isinstance(msg, str):
def _iter_message(msg: str) -> Iterable[Tuple[str, str]]:
text_begin = 0
for cqcode in re.finditer(