fixed pkg\provider\entities.py\get_content_mirai_message_chain中ce.type图片类型不正确的异常

This commit is contained in:
ElvisChenML 2024-07-09 17:04:11 +08:00
parent 45a10b4ac7
commit 21966bfb69

View File

@ -95,7 +95,7 @@ class Message(pydantic.BaseModel):
for ce in self.content:
if ce.type == 'text':
mc.append(mirai.Plain(ce.text))
elif ce.type == 'image':
elif ce.type == 'image_url':
if ce.image_url.url.startswith("http"):
mc.append(mirai.Image(url=ce.image_url.url))
else: # base64